widget: Remove clip from size-allocate vfunc
authorBenjamin Otte <otte@redhat.com>
Sat, 31 Mar 2018 19:02:28 +0000 (21:02 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 5 Apr 2018 12:56:38 +0000 (14:56 +0200)
As the clip is no longer needed, get rid of it.

78 files changed:
demos/gtk-demo/application.c
demos/gtk-demo/gtkfishbowl.c
demos/gtk-demo/popover.c
examples/drawing.c
gtk/gtkaccellabel.c
gtk/gtkactionbar.c
gtk/gtkappchooserwidget.c
gtk/gtkapplicationwindow.c
gtk/gtkbbox.c
gtk/gtkbin.c
gtk/gtkbox.c
gtk/gtkcalendar.c
gtk/gtkcellview.c
gtk/gtkcenterbox.c
gtk/gtkcheckbutton.c
gtk/gtkcheckmenuitem.c
gtk/gtkcolorbutton.c
gtk/gtkcolorplane.c
gtk/gtkcolorswatch.c
gtk/gtkcombobox.c
gtk/gtkcontainer.c
gtk/gtkentry.c
gtk/gtkexpander.c
gtk/gtkfilechooserbutton.c
gtk/gtkfilechooserdialog.c
gtk/gtkfilechooserwidget.c
gtk/gtkfixed.c
gtk/gtkflowbox.c
gtk/gtkfontbutton.c
gtk/gtkfontchooserwidget.c
gtk/gtkframe.c
gtk/gtkgizmo.c
gtk/gtkgizmoprivate.h
gtk/gtkglarea.c
gtk/gtkgrid.c
gtk/gtkheaderbar.c
gtk/gtkiconview.c
gtk/gtkimage.c
gtk/gtklabel.c
gtk/gtklayout.c
gtk/gtklevelbar.c
gtk/gtklistbox.c
gtk/gtkmediacontrols.c
gtk/gtkmenu.c
gtk/gtkmenubar.c
gtk/gtkmenuitem.c
gtk/gtkmodelbutton.c
gtk/gtknotebook.c
gtk/gtkoverlay.c
gtk/gtkpaned.c
gtk/gtkpathbar.c
gtk/gtkpopover.c
gtk/gtkprogressbar.c
gtk/gtkrange.c
gtk/gtkrevealer.c
gtk/gtkscale.c
gtk/gtkscrollbar.c
gtk/gtkscrolledwindow.c
gtk/gtksearchbar.c
gtk/gtkshortcutsshortcut.c
gtk/gtkspinbutton.c
gtk/gtkstack.c
gtk/gtkstatusbar.c
gtk/gtkswitch.c
gtk/gtktextview.c
gtk/gtktoolbar.c
gtk/gtktreeview.c
gtk/gtktreeviewcolumn.c
gtk/gtkvideo.c
gtk/gtkviewport.c
gtk/gtkwidget.c
gtk/gtkwidget.h
gtk/gtkwindow.c
gtk/inspector/gtkstackcombo.c
gtk/inspector/misc-info.c
tests/testinput.c
tests/testoverlaystyleclass.c
tests/testwidgetfocus.c

index f6500fd0ce637edc149a005d3c809a7966157edb..b865970742c5c35e847efceb61c66db3ce8363a3 100644 (file)
@@ -457,13 +457,12 @@ demo_application_window_constructed (GObject *object)
 static void
 demo_application_window_size_allocate (GtkWidget           *widget,
                                        const GtkAllocation *allocation,
-                                       int                  baseline,
-                                       GtkAllocation       *out_clip)
+                                       int                  baseline)
 {
   DemoApplicationWindow *window = (DemoApplicationWindow *)widget;
 
   GTK_WIDGET_CLASS (demo_application_window_parent_class)->size_allocate (widget, allocation,
-                                                                          baseline, out_clip);
+                                                                          baseline);
 
   if (!window->maximized && !window->fullscreen)
     gtk_window_get_size (GTK_WINDOW (window), &window->width, &window->height);
index 4e1b42acec7d9a398238af69f44cf69ad154bd8e..ee0b5f9365d53cb6e0222986941cf64f828d50f2 100644 (file)
@@ -127,8 +127,7 @@ gtk_fishbowl_measure (GtkWidget      *widget,
 static void
 gtk_fishbowl_size_allocate (GtkWidget           *widget,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkFishbowl *fishbowl = GTK_FISHBOWL (widget);
   GtkFishbowlPrivate *priv = gtk_fishbowl_get_instance_private (fishbowl);
@@ -139,8 +138,6 @@ gtk_fishbowl_size_allocate (GtkWidget           *widget,
 
   for (children = priv->children; children; children = children->next)
     {
-      GtkAllocation child_clip;
-
       child = children->data;
 
       if (!gtk_widget_get_visible (child->widget))
@@ -152,7 +149,7 @@ gtk_fishbowl_size_allocate (GtkWidget           *widget,
       child_allocation.width = child_requisition.width;
       child_allocation.height = child_requisition.height;
 
-      gtk_widget_size_allocate (child->widget, &child_allocation, -1, &child_clip);
+      gtk_widget_size_allocate (child->widget, &child_allocation, -1);
     }
 }
 
index 443d3d4f8c4b1a0188f9b2d0df4c2248003cd660..d39ed6103c860ceac014c6c3bb2521e6c809f79c 100644 (file)
@@ -58,8 +58,7 @@ static void
 entry_size_allocate_cb (GtkEntry            *entry,
                         const GtkAllocation *allocation,
                         int                  baseline,
-                        GtkAllocation       *out_clip,
-                        gpointer       user_data)
+                        gpointer             user_data)
 {
   GtkEntryIconPosition popover_pos;
   GtkPopover *popover = user_data;
index c5b0f65d9c702de979d0c4a0435499c08b06e1a8..7bf1bb688e1321d5a49cc72d0f11229d64b752e9 100644 (file)
@@ -21,7 +21,6 @@ static void
 size_allocate_cb (GtkWidget     *widget,
                   GtkAllocation *alloc,
                   int            baseline,
-                  GdkRectangle  *clip,
                   gpointer       data)
 {
   if (surface)
index 41c73a6f3a0adee27f5986d8c9f46e31c8a60e94..f2efe9e1faf63461c539c70205cf2357285552d2 100644 (file)
@@ -164,13 +164,12 @@ G_DEFINE_TYPE_WITH_PRIVATE (GtkAccelLabel, gtk_accel_label, GTK_TYPE_WIDGET)
 static void
 gtk_accel_label_size_allocate (GtkWidget           *widget,
                                const GtkAllocation *allocation,
-                               int                   baseline,
-                               GtkAllocation        *out_clip)
+                               int                   baseline)
 {
   GtkAccelLabel *al = GTK_ACCEL_LABEL (widget);
   GtkAccelLabelPrivate *priv = gtk_accel_label_get_instance_private (al);
 
-  gtk_widget_size_allocate (priv->box, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->box, allocation, baseline);
 }
 
 static void
index 5e179a4682b421474d4eba627ef5275c860f6877..d0f64669a68ae4261c97540c7ceb2aad3bd63ddf 100644 (file)
@@ -271,11 +271,10 @@ gtk_action_bar_snapshot (GtkWidget   *widget,
 static void
 gtk_action_bar_size_allocate (GtkWidget           *widget,
                               const GtkAllocation *allocation,
-                              int                  baseline,
-                              GtkAllocation       *out_clip)
+                              int                  baseline)
 {
   GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (widget));
-  gtk_widget_size_allocate (priv->revealer, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->revealer, allocation, baseline);
 }
 
 static void
index 65e4e88d240292a53a0d705bf4d686a6cffa8c0b..19c09690470b1da757b4e289d76f794aa673759e 100644 (file)
@@ -938,15 +938,14 @@ gtk_app_chooser_widget_snapshot (GtkWidget   *widget,
 static void
 gtk_app_chooser_widget_size_allocate (GtkWidget           *widget,
                                       const GtkAllocation *allocation,
-                                      int                  baseline,
-                                      GtkAllocation       *out_clip)
+                                      int                  baseline)
 {
   GtkAppChooserWidget *self = GTK_APP_CHOOSER_WIDGET (widget);
   GtkAppChooserWidgetPrivate *priv = gtk_app_chooser_widget_get_instance_private (self);
 
-  GTK_WIDGET_CLASS (gtk_app_chooser_widget_parent_class)->size_allocate (widget, allocation, baseline, out_clip);
+  GTK_WIDGET_CLASS (gtk_app_chooser_widget_parent_class)->size_allocate (widget, allocation, baseline);
 
-  gtk_widget_size_allocate (priv->overlay, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->overlay, allocation, baseline);
 }
 
 static void
index ec6fcb3268d008d54bc15b7d19ee045e268fe9ee..01e2efcb9884e334feb472b994393f8386af67f3 100644 (file)
@@ -593,8 +593,7 @@ gtk_application_window_measure (GtkWidget *widget,
 static void
 gtk_application_window_real_size_allocate (GtkWidget           *widget,
                                            const GtkAllocation *allocation,
-                                           int                  baseline,
-                                           GtkAllocation       *out_clip)
+                                           int                  baseline)
 {
   GtkApplicationWindow *window = GTK_APPLICATION_WINDOW (widget);
 
@@ -613,19 +612,18 @@ gtk_application_window_real_size_allocate (GtkWidget           *widget,
                           &menubar_height, NULL, NULL, NULL);
 
       menubar_allocation.height = menubar_height;
-      gtk_widget_size_allocate  (window->priv->menubar, &menubar_allocation, baseline, out_clip);
+      gtk_widget_size_allocate  (window->priv->menubar, &menubar_allocation, baseline);
 
       child_allocation.y += menubar_height;
       child_allocation.height -= menubar_height;
       child = gtk_bin_get_child (GTK_BIN (window));
       if (child != NULL && gtk_widget_get_visible (child))
-        gtk_widget_size_allocate (child, &child_allocation, baseline, out_clip);
+        gtk_widget_size_allocate (child, &child_allocation, baseline);
     }
   else
     GTK_WIDGET_CLASS (gtk_application_window_parent_class)->size_allocate (widget,
                                                                            allocation,
-                                                                           baseline,
-                                                                           out_clip);
+                                                                           baseline);
 }
 
 static void
index 743ed18f8a2d45951f4312880ea688b540e2629e..c4a426d814a4dc8b8196c84ad9e3ebb829d9e540 100644 (file)
@@ -99,8 +99,7 @@ static void gtk_button_box_measure           (GtkWidget         *widget,
                                               int               *natural_baseline);
 static void gtk_button_box_size_allocate      (GtkWidget           *widget,
                                                const GtkAllocation *allocation,
-                                               int                  baseline,
-                                               GtkAllocation       *out_clip);
+                                               int                  baseline);
 static void gtk_button_box_remove             (GtkContainer      *container,
                                                GtkWidget         *widget);
 static void gtk_button_box_set_child_property (GtkContainer      *container,
@@ -745,8 +744,7 @@ gtk_button_box_measure (GtkWidget      *widget,
 static void
 gtk_button_box_size_allocate (GtkWidget           *widget,
                               const GtkAllocation *allocation,
-                              int                  baseline,
-                              GtkAllocation       *out_clip)
+                              int                  baseline)
 {
   GtkButtonBox *bbox = GTK_BUTTON_BOX (widget);
   GtkButtonBoxPrivate *priv = bbox->priv;
@@ -774,14 +772,12 @@ gtk_button_box_size_allocate (GtkWidget           *widget,
   gint baseline_height;
   gint child_baseline;
   gint i;
-  GdkRectangle child_clip;
 
   if (priv->layout_style == GTK_BUTTONBOX_EXPAND)
     {
       GTK_WIDGET_CLASS (gtk_button_box_parent_class)->size_allocate (widget,
                                                                      allocation,
-                                                                     baseline,
-                                                                     out_clip);
+                                                                     baseline);
       return;
     }
 
@@ -1035,8 +1031,7 @@ gtk_button_box_size_allocate (GtkWidget           *widget,
                 }
             }
 
-          gtk_widget_size_allocate (child, &child_allocation, child_baseline, &child_clip);
-          gdk_rectangle_union (out_clip, &child_clip, out_clip);
+          gtk_widget_size_allocate (child, &child_allocation, child_baseline);
           i++;
         }
     }
index 79f882d8e4fba7ffa8bb5322eaa72d7cf6a3949d..51de172fa6f29a1bcc79c09e75440538051c6662 100644 (file)
@@ -66,14 +66,13 @@ G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GtkBin, gtk_bin, GTK_TYPE_CONTAINER)
 static void
 gtk_bin_size_allocate (GtkWidget           *widget,
                        const GtkAllocation *allocation,
-                       int                  baseline,
-                       GtkAllocation       *out_clip)
+                       int                  baseline)
 {
   GtkBin *bin = GTK_BIN (widget);
   GtkBinPrivate *priv = gtk_bin_get_instance_private (bin);
 
   if (priv->child && gtk_widget_get_visible (priv->child))
-    gtk_widget_size_allocate (priv->child, allocation, baseline, out_clip);
+    gtk_widget_size_allocate (priv->child, allocation, baseline);
 }
 
 static void
index bfe4b2bf11e628fdedc5ce94418f2ecde72d1caa..f89c3fd3bcddd1b40d52d306d66933f742f158ca 100644 (file)
@@ -143,8 +143,7 @@ struct _GtkBoxChild
 
 static void gtk_box_size_allocate         (GtkWidget              *widget,
                                            const GtkAllocation    *allocation,
-                                           int                     baseline,
-                                           GtkAllocation          *out_clip);
+                                           int                     baseline);
 
 static void gtk_box_direction_changed  (GtkWidget        *widget,
                                         GtkTextDirection  previous_direction);
@@ -371,8 +370,7 @@ get_spacing (GtkBox *box)
 static void
 gtk_box_size_allocate (GtkWidget           *widget,
                        const GtkAllocation *allocation,
-                       int                  baseline,
-                       GdkRectangle        *out_clip)
+                       int                  baseline)
 {
   GtkBox *box = GTK_BOX (widget);
   GtkBoxPrivate *priv = gtk_box_get_instance_private (box);
@@ -398,7 +396,6 @@ gtk_box_size_allocate (GtkWidget           *widget,
   gint x = 0, y = 0, i;
   gint child_size;
   gint spacing;
-  GdkRectangle clip;
 
 
   count_expand_children (box, &nvis_children, &nexpand_children);
@@ -660,8 +657,7 @@ gtk_box_size_allocate (GtkWidget           *widget,
                  child_allocation.y -= child_size;
                }
            }
-         gtk_widget_size_allocate (child->widget, &child_allocation, baseline, &clip);
-          gdk_rectangle_union (&clip, out_clip, out_clip);
+         gtk_widget_size_allocate (child->widget, &child_allocation, baseline);
 
          i++;
        }
index 94ae028d38861fd7bd8bb3fd5134637764d0d1a7..4a1174aa30ab7ddec1daf81d0ff2b70118c5ea31 100644 (file)
@@ -273,8 +273,7 @@ static void     gtk_calendar_measure        (GtkWidget        *widget,
                                              int            *natural_baseline);
 static void     gtk_calendar_size_allocate  (GtkWidget           *widget,
                                              const GtkAllocation *allocation,
-                                             int                  baseline,
-                                             GtkAllocation       *out_clip);
+                                             int                  baseline);
 static void     gtk_calendar_snapshot       (GtkWidget        *widget,
                                              GtkSnapshot      *snapshot);
 static void     gtk_calendar_button_press   (GtkGestureMultiPress *gesture,
@@ -1854,8 +1853,7 @@ gtk_calendar_measure (GtkWidget        *widget,
 static void
 gtk_calendar_size_allocate (GtkWidget           *widget,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkCalendar *calendar = GTK_CALENDAR (widget);
   GtkCalendarPrivate *priv = calendar->priv;
index 9b3dc1997c4a5b5962ed3e379dd3d30019465255..0a0a4485a49dbc58a9b56eb4d818205014b13e6d 100644 (file)
@@ -67,8 +67,7 @@ static void        gtk_cell_view_finalize                 (GObject          *obj
 static void        gtk_cell_view_dispose                  (GObject          *object);
 static void        gtk_cell_view_size_allocate            (GtkWidget           *widget,
                                                            const GtkAllocation *allocation,
-                                                           int                  baseline,
-                                                           GtkAllocation       *out_clip);
+                                                           int                  baseline);
 static void        gtk_cell_view_snapshot                 (GtkWidget        *widget,
                                                            GtkSnapshot      *snapshot);
 static void        gtk_cell_view_set_value                (GtkCellView     *cell_view,
@@ -461,8 +460,7 @@ gtk_cell_view_dispose (GObject *object)
 static void
 gtk_cell_view_size_allocate (GtkWidget           *widget,
                              const GtkAllocation *allocation,
-                             int                  baseline,
-                             GtkAllocation       *out_clip)
+                             int                  baseline)
 {
   GtkCellView *cellview;
   GtkCellViewPrivate *priv;
index dd88735cfbdc307169639af32205c39ced55c9a9..83d378f9a0b9ef4053b666226e4a4f9a6614f5d1 100644 (file)
@@ -384,12 +384,10 @@ gtk_center_box_measure (GtkWidget      *widget,
 static void
 gtk_center_box_size_allocate (GtkWidget           *widget,
                               const GtkAllocation *allocation,
-                              int                  baseline,
-                              GtkAllocation       *out_clip)
+                              int                  baseline)
 {
   GtkCenterBox *self = GTK_CENTER_BOX (widget);
   GtkAllocation child_allocation;
-  GtkAllocation child_clip;
   GtkWidget *child[3];
   int child_size[3];
   int child_pos[3];
@@ -529,8 +527,7 @@ gtk_center_box_size_allocate (GtkWidget           *widget,
           child_allocation.height = child_size[i];
         }
 
-      gtk_widget_size_allocate (child[i], &child_allocation, allocation->y + baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (child[i], &child_allocation, allocation->y + baseline);
     }
 }
 
index d5d1dcdd0e70a736c736bd9405cba4fa8991eadc..083a0a7e2608efee83b32f60fca597fb1dc1cb0f 100644 (file)
@@ -78,8 +78,7 @@
 
 static void gtk_check_button_size_allocate       (GtkWidget           *widget,
                                                   const GtkAllocation *allocation,
-                                                  int                  baseline,
-                                                  GtkAllocation       *out_clip);
+                                                  int                  baseline);
 
 typedef struct {
   GtkWidget *indicator_widget;
@@ -442,12 +441,10 @@ gtk_check_button_new_with_mnemonic (const gchar *label)
 static void
 gtk_check_button_size_allocate (GtkWidget           *widget,
                                 const GtkAllocation *allocation,
-                                int                  baseline,
-                                GtkAllocation       *out_clip)
+                                int                  baseline)
 {
   GtkCheckButtonPrivate *priv = gtk_check_button_get_instance_private (GTK_CHECK_BUTTON (widget));
   GtkAllocation child_alloc = { 0 };
-  GdkRectangle child_clip;
   GtkWidget *child;
   gboolean is_rtl = _gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL;
   int x = 0;
@@ -471,8 +468,7 @@ gtk_check_button_size_allocate (GtkWidget           *widget,
           child_alloc.x = allocation->x;
         }
 
-      gtk_widget_size_allocate (priv->indicator_widget, &child_alloc, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->indicator_widget, &child_alloc, baseline);
     }
 
   child = gtk_bin_get_child (GTK_BIN (widget));
@@ -483,8 +479,7 @@ gtk_check_button_size_allocate (GtkWidget           *widget,
       child_alloc.width = allocation->width - child_alloc.width; /* Indicator width */
       child_alloc.height = allocation->height;
 
-      gtk_widget_size_allocate (child, &child_alloc, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (child, &child_alloc, baseline);
     }
 }
 
index f941ac7ca5591fa1ca7d1e1dddceff8d0e06d66a..3cf5816e817c430f058d5b5db65d18992ac86846 100644 (file)
@@ -106,10 +106,8 @@ G_DEFINE_TYPE_WITH_CODE (GtkCheckMenuItem, gtk_check_menu_item, GTK_TYPE_MENU_IT
 static void
 gtk_check_menu_item_size_allocate (GtkWidget           *widget,
                                    const GtkAllocation *allocation,
-                                   int                  baseline,
-                                   GtkAllocation       *out_clip)
+                                   int                  baseline)
 {
-  GtkAllocation child_clip;
   GtkAllocation indicator_alloc;
   GtkCheckMenuItem *check_menu_item = GTK_CHECK_MENU_ITEM (widget);
   GtkCheckMenuItemPrivate *priv = check_menu_item->priv;
@@ -117,8 +115,7 @@ gtk_check_menu_item_size_allocate (GtkWidget           *widget,
 
   GTK_WIDGET_CLASS (gtk_check_menu_item_parent_class)->size_allocate (widget,
                                                                       allocation,
-                                                                      baseline,
-                                                                      out_clip);
+                                                                      baseline);
 
   gtk_widget_measure (priv->indicator_widget,
                       GTK_ORIENTATION_HORIZONTAL,
@@ -142,9 +139,7 @@ gtk_check_menu_item_size_allocate (GtkWidget           *widget,
 
   gtk_widget_size_allocate (priv->indicator_widget,
                             &indicator_alloc,
-                            baseline,
-                            &child_clip);
-  gdk_rectangle_union (out_clip, &child_clip, out_clip);
+                            baseline);
 }
 
 static void
index 97c039f4a9a317a185a64b46867c557956290cfd..9fe9736a1eea668f60fafe0eda8cd2ab63f971a6 100644 (file)
@@ -169,13 +169,12 @@ gtk_color_button_snapshot (GtkWidget   *widget,
 static void
 gtk_color_button_size_allocate (GtkWidget           *widget,
                                 const GtkAllocation *allocation,
-                                int                  baseline,
-                                GtkAllocation       *out_clip)
+                                int                  baseline)
 {
   GtkColorButton *button = GTK_COLOR_BUTTON (widget);
   GtkColorButtonPrivate *priv = gtk_color_button_get_instance_private (button);
 
-  gtk_widget_size_allocate (priv->button, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->button, allocation, baseline);
 }
 
 static void
index da99184baf57ff2dd77f79d3751c29dc5368c243..658efca1ebff1eb5f45e50bdeaec0d125ac0ffa7 100644 (file)
@@ -175,8 +175,7 @@ create_texture (GtkColorPlane *plane)
 static void
 plane_size_allocate (GtkWidget           *widget,
                      const GtkAllocation *allocation,
-                     int                   baseline,
-                     GtkAllocation        *out_clip)
+                     int                   baseline)
 {
   GtkColorPlane *plane = GTK_COLOR_PLANE (widget);
 
index acd58d84d99cba3b887100f860ddb31cdf0955b7..acd3298f7a2c90ded9748f9ef654a56e5a7d20a0 100644 (file)
@@ -368,11 +368,10 @@ tap_action (GtkGestureMultiPress *gesture,
 static void
 swatch_size_allocate (GtkWidget           *widget,
                       const GtkAllocation *allocation,
-                      int                  baseline,
-                      GtkAllocation       *out_clip)
+                      int                  baseline)
 {
   GtkColorSwatch *swatch = GTK_COLOR_SWATCH (widget);
-  gtk_widget_size_allocate (swatch->priv->overlay_widget, allocation, -1, out_clip);
+  gtk_widget_size_allocate (swatch->priv->overlay_widget, allocation, -1);
 }
 
 static void
index 7f3d959ff65c4433d0359d7a7e876894a832805b..0996ae4ff67a02d2a9fbbf17076899e7fb98bd07 100644 (file)
@@ -363,13 +363,12 @@ gtk_combo_box_measure (GtkWidget      *widget,
 static void
 gtk_combo_box_size_allocate (GtkWidget           *widget,
                              const GtkAllocation *allocation,
-                             int                  baseline,
-                             GtkAllocation       *out_clip)
+                             int                  baseline)
 {
   GtkComboBox *combo_box = GTK_COMBO_BOX (widget);
   GtkComboBoxPrivate *priv = combo_box->priv;
 
-  gtk_widget_size_allocate (priv->box, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->box, allocation, baseline);
 
   if (gtk_widget_get_visible (priv->popup_widget))
     {
index 6b7f34d34260899c2da4c3459e87367dc5be65dc..821d02768269377d10c50529a1b1d8b5d71217a3 100644 (file)
@@ -1690,7 +1690,6 @@ gtk_container_real_check_resize (GtkContainer *container)
     {
       if (!_gtk_widget_is_toplevel (widget))
         {
-          GtkAllocation clip;
           gtk_widget_get_preferred_size (widget, &requisition, NULL);
           gtk_widget_get_allocated_size (widget, &allocation, &baseline);
 
@@ -1698,7 +1697,7 @@ gtk_container_real_check_resize (GtkContainer *container)
             allocation.width = requisition.width;
           if (allocation.height < requisition.height)
             allocation.height = requisition.height;
-          gtk_widget_size_allocate (widget, &allocation, baseline, &clip);
+          gtk_widget_size_allocate (widget, &allocation, baseline);
         }
       else
         gtk_widget_queue_resize (widget);
index 29ae156fa34fc7e1837f949b6595391bce256243..e854881f0df24db8fe51d48c85cca0171bbbec24 100644 (file)
@@ -413,8 +413,7 @@ static void   gtk_entry_unrealize            (GtkWidget        *widget);
 static void   gtk_entry_unmap                (GtkWidget        *widget);
 static void   gtk_entry_size_allocate        (GtkWidget           *widget,
                                               const GtkAllocation *allocation,
-                                              int                  baseline,
-                                              GtkAllocation       *out_clip);
+                                              int                  baseline);
 static void   gtk_entry_snapshot             (GtkWidget        *widget,
                                               GtkSnapshot      *snapshot);
 static gboolean gtk_entry_event              (GtkWidget        *widget,
@@ -3140,12 +3139,10 @@ gtk_entry_measure (GtkWidget      *widget,
 static void
 gtk_entry_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkEntry *entry = GTK_ENTRY (widget);
   GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
-  GtkAllocation child_clip;
   gint i;
 
   priv->text_baseline = baseline;
@@ -3182,8 +3179,7 @@ gtk_entry_size_allocate (GtkWidget           *widget,
       icon_alloc.height = allocation->height;
       priv->text_width -= width;
 
-      gtk_widget_size_allocate (icon_info->widget, &icon_alloc, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (icon_info->widget, &icon_alloc, baseline);
     }
 
   if (priv->progress_widget && gtk_widget_get_visible (priv->progress_widget))
@@ -3201,8 +3197,7 @@ gtk_entry_size_allocate (GtkWidget           *widget,
       progress_alloc.width = allocation->width;
       progress_alloc.height = nat;
 
-      gtk_widget_size_allocate (priv->progress_widget, &progress_alloc, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->progress_widget, &progress_alloc, -1);
     }
 
   /* Do this here instead of gtk_entry_size_allocate() so it works
index 85e2b67e1f1f6d7a6130021ef1c3d6b5b6860c2a..db794ee3e62ac091fdc75e614b035bc8359f8c31 100644 (file)
@@ -177,8 +177,7 @@ static void gtk_expander_get_property (GObject          *object,
 static void     gtk_expander_destroy        (GtkWidget        *widget);
 static void     gtk_expander_size_allocate  (GtkWidget           *widget,
                                              const GtkAllocation *allocation,
-                                             int                  baseline,
-                                             GtkAllocation       *out_clip);
+                                             int                  baseline);
 static gboolean gtk_expander_focus          (GtkWidget        *widget,
                                              GtkDirectionType  direction);
 static gboolean gtk_expander_drag_motion    (GtkWidget        *widget,
@@ -498,12 +497,11 @@ gtk_expander_destroy (GtkWidget *widget)
 static void
 gtk_expander_size_allocate (GtkWidget           *widget,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkExpanderPrivate *priv = gtk_expander_get_instance_private (GTK_EXPANDER (widget));
 
-  gtk_widget_size_allocate (priv->box, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->box, allocation, baseline);
 }
 
 static void
index 7900b0796940fd1175e76ebac8f31dbab0dcf97b..d221fa90c28aabcead4cfa13b37192abaf6fb1bc 100644 (file)
@@ -363,13 +363,12 @@ gtk_file_chooser_button_measure (GtkWidget       *widget,
 static void
 gtk_file_chooser_button_size_allocate (GtkWidget           *widget,
                                        const GtkAllocation *allocation,
-                                       int                  baseline,
-                                       GtkAllocation       *out_clip)
+                                       int                  baseline)
 {
   GtkFileChooserButton *button = GTK_FILE_CHOOSER_BUTTON (widget);
   GtkFileChooserButtonPrivate *priv = gtk_file_chooser_button_get_instance_private (button);
 
-  gtk_widget_size_allocate (priv->child, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->child, allocation, baseline);
 }
 
 static void
index 517654e24a723afb9c15805b418f03ae63e34bdc..98584142283b237c014e318d9bb631d201d0bf3a 100644 (file)
@@ -232,8 +232,7 @@ static void     gtk_file_chooser_dialog_map          (GtkWidget             *wid
 static void     gtk_file_chooser_dialog_unmap        (GtkWidget             *widget);
 static void     gtk_file_chooser_dialog_size_allocate (GtkWidget             *widget,
                                                        const GtkAllocation   *allocation,
-                                                       int                    baseline,
-                                                       GtkAllocation         *out_clip);
+                                                       int                    baseline);
 static void     file_chooser_widget_file_activated   (GtkFileChooser        *chooser,
                                                       GtkFileChooserDialog  *dialog);
 static void     file_chooser_widget_default_size_changed (GtkWidget            *widget,
@@ -620,13 +619,11 @@ gtk_file_chooser_dialog_unmap (GtkWidget *widget)
 static void
 gtk_file_chooser_dialog_size_allocate (GtkWidget           *widget,
                                        const GtkAllocation *allocation,
-                                       int                  baseline,
-                                       GtkAllocation       *out_clip)
+                                       int                  baseline)
 {
   GTK_WIDGET_CLASS (gtk_file_chooser_dialog_parent_class)->size_allocate (widget,
                                                                           allocation,
-                                                                          baseline,
-                                                                          out_clip);
+                                                                          baseline);
   if (gtk_widget_is_drawable (widget))
     save_dialog_geometry (GTK_FILE_CHOOSER_DIALOG (widget));
 }
index 575a68e79a5cc68446cad7dd210ae81b736b807d..58ec9a1e6407ee2cc87c91e70b226753d9662b7f 100644 (file)
@@ -7944,18 +7944,16 @@ gtk_file_chooser_widget_snapshot (GtkWidget   *widget,
 static void
 gtk_file_chooser_widget_size_allocate (GtkWidget           *widget,
                                        const GtkAllocation *allocation,
-                                       int                  baseline,
-                                       GtkAllocation       *out_clip)
+                                       int                  baseline)
 {
   GtkFileChooserWidget *self = GTK_FILE_CHOOSER_WIDGET (widget);
   GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (self);
 
   GTK_WIDGET_CLASS (gtk_file_chooser_widget_parent_class)->size_allocate (widget,
                                                                           allocation,
-                                                                          baseline,
-                                                                          out_clip);
+                                                                          baseline);
 
-  gtk_widget_size_allocate (priv->box, allocation, -1, out_clip);
+  gtk_widget_size_allocate (priv->box, allocation, -1);
 }
 
 static void
index e22a2d2fa02275ef14f3ad1e453c5845a65ce250..b01be4f1ef15b44e7d7bcc9fbcaefd038805a161 100644 (file)
@@ -103,8 +103,7 @@ static void gtk_fixed_measure (GtkWidget      *widget,
 
 static void gtk_fixed_size_allocate (GtkWidget           *widget,
                                      const GtkAllocation *allocation,
-                                     int                  baseline,
-                                     GtkAllocation       *out_clip);
+                                     int                  baseline);
 static void gtk_fixed_add           (GtkContainer     *container,
                                      GtkWidget        *widget);
 static void gtk_fixed_remove        (GtkContainer     *container,
@@ -394,8 +393,7 @@ gtk_fixed_measure (GtkWidget      *widget,
 static void
 gtk_fixed_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkFixed *fixed = GTK_FIXED (widget);
   GtkFixedPrivate *priv = fixed->priv;
@@ -417,7 +415,7 @@ gtk_fixed_size_allocate (GtkWidget           *widget,
 
       child_allocation.width = child_requisition.width;
       child_allocation.height = child_requisition.height;
-      gtk_widget_size_allocate (child->widget, &child_allocation, -1, out_clip);
+      gtk_widget_size_allocate (child->widget, &child_allocation, -1);
     }
 }
 
index 83fab0146fe0748459737113ee10332ff0689228..a0063db474c461344b981f9b8dbc41508d9b1816 100644 (file)
@@ -437,14 +437,13 @@ gtk_flow_box_child_measure (GtkWidget     *widget,
 static void
 gtk_flow_box_child_size_allocate (GtkWidget           *widget,
                                   const GtkAllocation *allocation,
-                                  int                  baseline,
-                                  GtkAllocation       *out_clip)
+                                  int                  baseline)
 {
   GtkWidget *child;
 
   child = gtk_bin_get_child (GTK_BIN (widget));
   if (child && gtk_widget_get_visible (child))
-    gtk_widget_size_allocate (child, allocation, -1, out_clip);
+    gtk_widget_size_allocate (child, allocation, -1);
 }
 
 /* GObject implementation {{{2 */
@@ -1391,12 +1390,10 @@ get_offset_pixels (GtkAlign align,
 static void
 gtk_flow_box_size_allocate (GtkWidget           *widget,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkFlowBox *box = GTK_FLOW_BOX (widget);
   GtkFlowBoxPrivate  *priv = BOX_PRIV (box);
-  GdkRectangle child_clip;
   GtkAllocation child_allocation;
   gint avail_size, avail_other_size, min_items, item_spacing, line_spacing;
   GtkAlign item_align;
@@ -1726,8 +1723,7 @@ gtk_flow_box_size_allocate (GtkWidget           *widget,
       if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
         child_allocation.x = allocation->width - child_allocation.x - child_allocation.width;
 
-      gtk_widget_size_allocate (child, &child_allocation, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (child, &child_allocation, -1);
 
       item_offset += this_item_size;
       item_offset += item_spacing;
index 02b848589e7f00bbd540916ffb0254f47f62a99c..33dd4df027a901bfa67df89822e5d96077674cd4 100644 (file)
@@ -474,13 +474,12 @@ gtk_font_button_measure (GtkWidget       *widget,
 static void
 gtk_font_button_size_allocate (GtkWidget           *widget,
                                const GtkAllocation *allocation,
-                               int                  baseline,
-                               GtkAllocation       *out_clip)
+                               int                  baseline)
 {
   GtkFontButton *button = GTK_FONT_BUTTON (widget);
   GtkFontButtonPrivate *priv = gtk_font_button_get_instance_private (button);
 
-  gtk_widget_size_allocate (priv->button, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->button, allocation, baseline);
 }
 
 static void
index 07f8806b1c578005d444dece3257826cea505924..01df16d9a5be3c929c258148a93afd03686f313c 100644 (file)
@@ -669,15 +669,14 @@ gtk_font_chooser_widget_snapshot (GtkWidget   *widget,
 static void
 gtk_font_chooser_widget_size_allocate (GtkWidget           *widget,
                                        const GtkAllocation *allocation,
-                                       int                  baseline,
-                                       GtkAllocation       *out_clip)
+                                       int                  baseline)
 {
   GtkFontChooserWidget *self = GTK_FONT_CHOOSER_WIDGET (widget);
   GtkFontChooserWidgetPrivate *priv = gtk_font_chooser_widget_get_instance_private (self);
 
-  GTK_WIDGET_CLASS (gtk_font_chooser_widget_parent_class)->size_allocate (widget, allocation, -1, out_clip);
+  GTK_WIDGET_CLASS (gtk_font_chooser_widget_parent_class)->size_allocate (widget, allocation, -1);
 
-  gtk_widget_size_allocate (priv->stack, allocation, -1, out_clip);
+  gtk_widget_size_allocate (priv->stack, allocation, -1);
 }
 
 static void
index 2bc083b83e236c526c69662d971265a14689a2ec..3afb54ecb691ca596a2fe4659e2ffaa40228fcd7 100644 (file)
@@ -120,8 +120,7 @@ static void gtk_frame_get_property (GObject     *object,
                                    GParamSpec  *pspec);
 static void gtk_frame_size_allocate (GtkWidget           *widget,
                                      const GtkAllocation *allocation,
-                                     int                  baseline,
-                                     GtkAllocation       *out_clip);
+                                     int                  baseline);
 static void gtk_frame_remove        (GtkContainer   *container,
                                     GtkWidget      *child);
 static void gtk_frame_forall        (GtkContainer   *container,
@@ -573,14 +572,12 @@ gtk_frame_get_shadow_type (GtkFrame *frame)
 static void
 gtk_frame_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkFrame *frame = GTK_FRAME (widget);
   GtkFramePrivate *priv = frame->priv;
   GtkWidget *child;
   GtkAllocation new_allocation;
-  GtkAllocation child_clip;
 
   gtk_frame_compute_child_allocation (frame, &new_allocation);
   priv->child_allocation = new_allocation;
@@ -607,15 +604,13 @@ gtk_frame_size_allocate (GtkWidget           *widget,
       priv->label_allocation.height = height;
       priv->label_allocation.width = width;
 
-      gtk_widget_size_allocate (priv->label_widget, &priv->label_allocation, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->label_widget, &priv->label_allocation, -1);
     }
 
   child = gtk_bin_get_child (GTK_BIN (widget));
   if (child && gtk_widget_get_visible (child))
     {
-      gtk_widget_size_allocate (child, &priv->child_allocation, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (child, &priv->child_allocation, -1);
     }
 }
 
index b0b921f53624727a8974605c98f6d3ac570dc2d6..7d03d556ba48c43e4b8b292cbf8cd5ce1b27472e 100644 (file)
@@ -25,16 +25,14 @@ gtk_gizmo_measure (GtkWidget      *widget,
 static void
 gtk_gizmo_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkGizmo *self = GTK_GIZMO (widget);
 
   if (self->allocate_func)
     self->allocate_func (self,
                          allocation,
-                         baseline,
-                         out_clip);
+                         baseline);
 }
 
 static void
index b5744b4d2a1148bfc1aecb1bb9a3bf0b6801a125..1e59eefa668ba473e127e684fc4d0d5f1cb279fe 100644 (file)
@@ -23,8 +23,7 @@ typedef void    (* GtkGizmoMeasureFunc)   (GtkGizmo       *gizmo,
                                            int            *natural_baseline);
 typedef void    (* GtkGizmoAllocateFunc)  (GtkGizmo            *gizmo,
                                            const GtkAllocation *allocation,
-                                           int                  baseline,
-                                           GtkAllocation       *out_clip);
+                                           int                  baseline);
 typedef gboolean (* GtkGizmoSnapshotFunc) (GtkGizmo    *gizmo,
                                            GtkSnapshot *snapshot);
 
index 6ff8c4ab80bab4e6850237d7d7d0907751994509..b02ed709dd5d0b79666d74f40bf0ed2b2385c0cd 100644 (file)
@@ -632,13 +632,12 @@ gtk_gl_area_unrealize (GtkWidget *widget)
 static void
 gtk_gl_area_size_allocate (GtkWidget           *widget,
                            const GtkAllocation *allocation,
-                           int                  baseline,
-                           GtkAllocation       *out_clip)
+                           int                  baseline)
 {
   GtkGLArea *area = GTK_GL_AREA (widget);
   GtkGLAreaPrivate *priv = gtk_gl_area_get_instance_private (area);
 
-  GTK_WIDGET_CLASS (gtk_gl_area_parent_class)->size_allocate (widget, allocation, baseline, out_clip);
+  GTK_WIDGET_CLASS (gtk_gl_area_parent_class)->size_allocate (widget, allocation, baseline);
 
   if (gtk_widget_get_realized (widget))
     priv->needs_resize = TRUE;
index 65dd19b475dd3c394a1735f79821192e9412cdf3..18c7c2143199390bdae38501143d7b9a90e963ad 100644 (file)
@@ -1520,12 +1520,10 @@ allocate_child (GtkGridRequest *request,
 
 static void
 gtk_grid_request_allocate_children (GtkGridRequest      *request,
-                                    const GtkAllocation *allocation,
-                                    GtkAllocation       *out_clip)
+                                    const GtkAllocation *allocation)
 {
   GtkWidget *child;
   GtkAllocation child_allocation;
-  GtkAllocation child_clip;
   gint x, y, width, height, baseline, ignore;
 
 
@@ -1550,8 +1548,7 @@ gtk_grid_request_allocate_children (GtkGridRequest      *request,
         child_allocation.x = allocation->x + allocation->width
                              - (child_allocation.x - allocation->x) - child_allocation.width;
 
-      gtk_widget_size_allocate (child, &child_allocation, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (child, &child_allocation, baseline);
     }
 }
 
@@ -1560,8 +1557,7 @@ gtk_grid_request_allocate_children (GtkGridRequest      *request,
 static void
 gtk_grid_size_allocate (GtkWidget          *widget,
                         const GtkAllocation *allocation,
-                        int                  baseline,
-                        GtkAllocation       *out_clip)
+                        int                  baseline)
 {
   GtkGrid *grid = GTK_GRID (widget);
   GtkGridRequest request;
@@ -1595,7 +1591,7 @@ gtk_grid_size_allocate (GtkWidget          *widget,
   gtk_grid_request_position (&request, 0);
   gtk_grid_request_position (&request, 1);
 
-  gtk_grid_request_allocate_children (&request, allocation, out_clip);
+  gtk_grid_request_allocate_children (&request, allocation);
 }
 
 static void
index 8f66a80b879d8d73373194a4fbb429b0a1099aa4..c5e3d5c8d84f2fd90cd9d2efe5c144fb6d04d093 100644 (file)
@@ -911,8 +911,7 @@ gtk_header_bar_measure (GtkWidget      *widget,
 static void
 gtk_header_bar_size_allocate (GtkWidget           *widget,
                               const GtkAllocation *allocation,
-                              int                  baseline,
-                              GtkAllocation       *out_clip)
+                              int                  baseline)
 {
   GtkHeaderBarPrivate *priv = gtk_header_bar_get_instance_private (GTK_HEADER_BAR (widget));
   GtkWidget *title_widget;
@@ -936,7 +935,6 @@ gtk_header_bar_size_allocate (GtkWidget           *widget,
   gint x;
   gint child_size;
   GtkTextDirection direction;
-  GtkAllocation child_clip = {0, };
 
   direction = gtk_widget_get_direction (widget);
   nvis_children = count_visible_children (bar);
@@ -1113,8 +1111,7 @@ gtk_header_bar_size_allocate (GtkWidget           *widget,
           if (direction == GTK_TEXT_DIR_RTL)
             child_allocation.x = allocation->x + allocation->width - (child_allocation.x - allocation->x) - child_allocation.width;
 
-          gtk_widget_size_allocate (child->widget, &child_allocation, baseline, &child_clip);
-          gdk_rectangle_union (out_clip, &child_clip, out_clip);
+          gtk_widget_size_allocate (child->widget, &child_allocation, baseline);
 
         next:
           i++;
@@ -1151,8 +1148,7 @@ gtk_header_bar_size_allocate (GtkWidget           *widget,
 
   if (title_widget != NULL)
     {
-      gtk_widget_size_allocate (title_widget, &child_allocation, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (title_widget, &child_allocation, baseline);
     }
 
   child_allocation.y = allocation->y;
@@ -1166,8 +1162,7 @@ gtk_header_bar_size_allocate (GtkWidget           *widget,
       else
         child_allocation.x = allocation->x + allocation->width - start_width + priv->spacing;
       child_allocation.width = start_width - priv->spacing;
-      gtk_widget_size_allocate (priv->titlebar_start_box, &child_allocation, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->titlebar_start_box, &child_allocation, baseline);
     }
 
   if (priv->titlebar_end_box)
@@ -1178,8 +1173,7 @@ gtk_header_bar_size_allocate (GtkWidget           *widget,
       else
         child_allocation.x = allocation->x + allocation->width - end_width + priv->spacing;
       child_allocation.width = end_width - priv->spacing;
-      gtk_widget_size_allocate (priv->titlebar_end_box, &child_allocation, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->titlebar_end_box, &child_allocation, baseline);
     }
 }
 
index a9a9901bcb57406d439e2188ad73e66297b9ecda..b9987b294a8d03db994e96c1fe2bc7eb883b5788 100644 (file)
@@ -154,8 +154,7 @@ static void gtk_icon_view_measure (GtkWidget *widget,
                                    int            *natural_baseline);
 static void             gtk_icon_view_size_allocate             (GtkWidget           *widget,
                                                                  const GtkAllocation *allocation,
-                                                                 int                  baseline,
-                                                                 GtkAllocation       *out_clip);
+                                                                 int                  baseline);
 static void             gtk_icon_view_snapshot                  (GtkWidget          *widget,
                                                                  GtkSnapshot        *snapshot);
 static void             gtk_icon_view_motion                    (GtkEventController *controller,
@@ -1595,18 +1594,16 @@ gtk_icon_view_allocate_children (GtkIconView *icon_view)
   for (list = icon_view->priv->children; list; list = list->next)
     {
       GtkIconViewChild *child = list->data;
-      GtkAllocation clip;
 
       /* totally ignore our child's requisition */
-      gtk_widget_size_allocate (child->widget, &child->area, -1, &clip);
+      gtk_widget_size_allocate (child->widget, &child->area, -1);
     }
 }
 
 static void
 gtk_icon_view_size_allocate (GtkWidget           *widget,
                              const GtkAllocation *allocation,
-                             int                  baseline,
-                             GtkAllocation       *out_clip)
+                             int                  baseline)
 {
   GtkIconView *icon_view = GTK_ICON_VIEW (widget);
 
index 5c008e2785e0c13614b3f09021a2eec6239874ed..f5054495f2ca7dc34e85130db7c6f62a32faa1f2 100644 (file)
@@ -94,10 +94,6 @@ struct _GtkImagePrivate
 
 static void gtk_image_snapshot             (GtkWidget    *widget,
                                             GtkSnapshot  *snapshot);
-static void gtk_image_size_allocate        (GtkWidget           *widget,
-                                            const GtkAllocation *allocation,
-                                            int                  baseline,
-                                            GtkAllocation       *out_clip);
 static void gtk_image_unrealize            (GtkWidget    *widget);
 static void gtk_image_measure (GtkWidget      *widget,
                                GtkOrientation  orientation,
@@ -155,7 +151,6 @@ gtk_image_class_init (GtkImageClass *class)
   widget_class = GTK_WIDGET_CLASS (class);
   widget_class->snapshot = gtk_image_snapshot;
   widget_class->measure = gtk_image_measure;
-  widget_class->size_allocate = gtk_image_size_allocate;
   widget_class->unrealize = gtk_image_unrealize;
   widget_class->style_updated = gtk_image_style_updated;
 
@@ -1094,20 +1089,6 @@ gtk_image_new (void)
   return g_object_new (GTK_TYPE_IMAGE, NULL);
 }
 
-static void
-gtk_image_size_allocate (GtkWidget           *widget,
-                         const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
-{
-  _gtk_style_context_get_icon_extents (gtk_widget_get_style_context (widget),
-                                       out_clip,
-                                       allocation->x,
-                                       allocation->y,
-                                       allocation->width,
-                                       allocation->height);
-}
-
 static void
 gtk_image_unrealize (GtkWidget *widget)
 {
index a6fd8f80fa5cadf8dffec1368d800e9b526e046a..b4f85bc6746193cf56c966332193c720cb8474f5 100644 (file)
@@ -406,8 +406,7 @@ static void gtk_label_finalize          (GObject          *object);
 static void gtk_label_destroy           (GtkWidget        *widget);
 static void gtk_label_size_allocate     (GtkWidget           *widget,
                                          const GtkAllocation *allocation,
-                                         int                  baseline,
-                                         GtkAllocation       *out_clip);
+                                         int                  baseline);
 static void gtk_label_state_flags_changed   (GtkWidget        *widget,
                                              GtkStateFlags     prev_state);
 static void gtk_label_style_updated     (GtkWidget        *widget);
@@ -3653,33 +3652,10 @@ get_layout_location (GtkLabel  *label,
     *yp = y;
 }
 
-static void
-gtk_label_get_ink_rect (GtkLabel     *label,
-                        GdkRectangle *rect)
-{
-  GtkLabelPrivate *priv = gtk_label_get_instance_private (label);
-  GtkStyleContext *context;
-  PangoRectangle ink_rect;
-  GtkBorder extents;
-  int x, y;
-
-  gtk_label_ensure_layout (label);
-  get_layout_location (label, &x, &y);
-  pango_layout_get_pixel_extents (priv->layout, &ink_rect, NULL);
-  context = gtk_widget_get_style_context (GTK_WIDGET (label));
-  _gtk_css_shadows_value_get_extents (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_TEXT_SHADOW), &extents);
-
-  rect->x = x + ink_rect.x - extents.left;
-  rect->width = ink_rect.width + extents.left + extents.right;
-  rect->y = y + ink_rect.y - extents.top;
-  rect->height = ink_rect.height + extents.top + extents.bottom;
-}
-
 static void
 gtk_label_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkLabel *label = GTK_LABEL (widget);
   GtkLabelPrivate *priv = gtk_label_get_instance_private (label);
@@ -3692,8 +3668,6 @@ gtk_label_size_allocate (GtkWidget           *widget,
       else
         pango_layout_set_width (priv->layout, -1);
     }
-
-  gtk_label_get_ink_rect (label, out_clip);
 }
 
 static void
index 24e8a02826569aa51a569159378ea090aab6b9bb..36a81709d21c3dbff050ba35898c48d0bc2f2516 100644 (file)
@@ -119,8 +119,7 @@ static void gtk_layout_measure (GtkWidget *widget,
                                 int            *natural_baseline);
 static void gtk_layout_size_allocate      (GtkWidget          *widget,
                                            const GtkAllocation *allocation,
-                                           int                 baseline,
-                                           GtkAllocation      *out_clip);
+                                           int                 baseline);
 static void gtk_layout_add                (GtkContainer   *container,
                                           GtkWidget      *widget);
 static void gtk_layout_remove             (GtkContainer   *container,
@@ -726,8 +725,7 @@ gtk_layout_measure (GtkWidget *widget,
 static void
 gtk_layout_size_allocate (GtkWidget           *widget,
                           const GtkAllocation *allocation,
-                          int                  baseline,
-                          GtkAllocation       *out_clip)
+                          int                  baseline)
 {
   GtkLayout *layout = GTK_LAYOUT (widget);
   GtkLayoutPrivate *priv = layout->priv;
@@ -748,7 +746,6 @@ gtk_layout_size_allocate (GtkWidget           *widget,
       GtkLayoutChild *child = tmp_list->data;
       GtkAllocation allocation;
       GtkRequisition requisition;
-      GtkAllocation child_clip;
 
       tmp_list = tmp_list->next;
 
@@ -759,7 +756,7 @@ gtk_layout_size_allocate (GtkWidget           *widget,
       allocation.width = requisition.width;
       allocation.height = requisition.height;
 
-      gtk_widget_size_allocate (child->widget, &allocation, -1, &child_clip);
+      gtk_widget_size_allocate (child->widget, &allocation, -1);
     }
 
   gtk_layout_set_hadjustment_values (layout);
index d7fbfbe3afa83ec4d42f9ac918502f6b8804d95c..9c7c8a05c564fb14093c36f6d4460eb68f677d0b 100644 (file)
@@ -439,11 +439,10 @@ gtk_level_bar_measure (GtkWidget      *widget,
 static void
 gtk_level_bar_allocate_trough_continuous (GtkLevelBar         *self,
                                           const GtkAllocation *allocation,
-                                          int                  baseline,
-                                          GtkAllocation       *out_clip)
+                                          int                  baseline)
 {
   GtkLevelBarPrivate *priv = gtk_level_bar_get_instance_private (self);
-  GtkAllocation block_area, clip;
+  GtkAllocation block_area;
   gdouble fill_percentage;
   gboolean inverted;
   int block_min;
@@ -453,8 +452,7 @@ gtk_level_bar_allocate_trough_continuous (GtkLevelBar         *self,
   /* allocate the empty (unfilled) part */
   gtk_widget_size_allocate (priv->block_widget[inverted ? 0 : 1],
                             allocation,
-                            baseline,
-                            out_clip);
+                            baseline);
 
   if (priv->cur_value == 0)
     return;
@@ -488,19 +486,16 @@ gtk_level_bar_allocate_trough_continuous (GtkLevelBar         *self,
 
   gtk_widget_size_allocate (priv->block_widget[inverted ? 1 : 0],
                             &block_area,
-                            baseline,
-                            &clip);
-  gdk_rectangle_intersect (out_clip, &clip, out_clip);
+                            baseline);
 }
 
 static void
 gtk_level_bar_allocate_trough_discrete (GtkLevelBar *self,
                                         const GtkAllocation *allocation,
-                                        int baseline,
-                                        GtkAllocation *out_clip)
+                                        int baseline)
 {
   GtkLevelBarPrivate *priv = gtk_level_bar_get_instance_private (self);
-  GtkAllocation block_area, clip;
+  GtkAllocation block_area;
   gint num_blocks, i;
   gint block_width, block_height;
 
@@ -530,9 +525,7 @@ gtk_level_bar_allocate_trough_discrete (GtkLevelBar *self,
     {
       gtk_widget_size_allocate (priv->block_widget[i],
                                 &block_area,
-                                baseline,
-                                &clip);
-      gdk_rectangle_intersect (out_clip, &clip, out_clip);
+                                baseline);
 
       if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
         block_area.x += block_area.width;
@@ -544,28 +537,26 @@ gtk_level_bar_allocate_trough_discrete (GtkLevelBar *self,
 static void
 gtk_level_bar_allocate_trough (GtkGizmo            *gizmo,
                                const GtkAllocation *allocation,
-                               int                  baseline,
-                               GtkAllocation       *out_clip)
+                               int                  baseline)
 {
   GtkWidget *widget = GTK_WIDGET (gizmo);
   GtkLevelBar *self = GTK_LEVEL_BAR (gtk_widget_get_parent (widget));
   GtkLevelBarPrivate *priv = gtk_level_bar_get_instance_private (self);
 
   if (priv->bar_mode == GTK_LEVEL_BAR_MODE_CONTINUOUS)
-    gtk_level_bar_allocate_trough_continuous (self, allocation, baseline, out_clip);
+    gtk_level_bar_allocate_trough_continuous (self, allocation, baseline);
   else
-    gtk_level_bar_allocate_trough_discrete (self, allocation, baseline, out_clip);
+    gtk_level_bar_allocate_trough_discrete (self, allocation, baseline);
 }
 
 static void
 gtk_level_bar_size_allocate (GtkWidget           *widget,
                              const GtkAllocation *allocation,
-                             int                  baseline,
-                             GtkAllocation       *out_clip)
+                             int                  baseline)
 {
   GtkLevelBarPrivate *priv = gtk_level_bar_get_instance_private (GTK_LEVEL_BAR (widget));
 
-  gtk_widget_size_allocate (priv->trough_widget, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->trough_widget, allocation, baseline);
 }
 
 static void
index a0c9440eeda8b60a9701515dd0f269fbbb4b9528..5d7b62b7ed870740040fa88490445f1b8832d4cf 100644 (file)
@@ -228,8 +228,7 @@ static GType                gtk_list_box_child_type                   (GtkContai
 static GtkSizeRequestMode   gtk_list_box_get_request_mode             (GtkWidget           *widget);
 static void                 gtk_list_box_size_allocate                (GtkWidget           *widget,
                                                                        const GtkAllocation *allocation,
-                                                                       int                  baseline,
-                                                                       GtkAllocation       *out_clip);
+                                                                       int                  baseline);
 static void                 gtk_list_box_drag_leave                   (GtkWidget           *widget,
                                                                        GdkDragContext      *context,
                                                                        guint                time_);
@@ -2499,11 +2498,9 @@ gtk_list_box_measure (GtkWidget     *widget,
 static void
 gtk_list_box_size_allocate (GtkWidget           *widget,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkListBoxPrivate *priv = BOX_PRIV (widget);
-  GtkAllocation child_clip;
   GtkAllocation child_allocation;
   GtkAllocation header_allocation;
   GtkListBoxRow *row;
@@ -2528,8 +2525,7 @@ gtk_list_box_size_allocate (GtkWidget           *widget,
                           &child_min, NULL, NULL, NULL);
       header_allocation.height = allocation->height;
       header_allocation.y = child_allocation.y;
-      gtk_widget_size_allocate (priv->placeholder, &header_allocation, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->placeholder, &header_allocation, -1);
       child_allocation.y += child_min;
     }
 
@@ -2554,9 +2550,7 @@ gtk_list_box_size_allocate (GtkWidget           *widget,
           header_allocation.y = child_allocation.y;
           gtk_widget_size_allocate (ROW_PRIV (row)->header,
                                     &header_allocation,
-                                    -1,
-                                    &child_clip);
-          gdk_rectangle_union (out_clip, &child_clip, out_clip);
+                                    -1);
           child_allocation.y += child_min;
         }
 
@@ -2568,8 +2562,7 @@ gtk_list_box_size_allocate (GtkWidget           *widget,
       child_allocation.height = child_min;
 
       ROW_PRIV (row)->height = child_allocation.height;
-      gtk_widget_size_allocate (GTK_WIDGET (row), &child_allocation, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (GTK_WIDGET (row), &child_allocation, -1);
       child_allocation.y += child_min;
     }
 }
index f590a434f6dfde465e9ecf83f1fcb40f069e2246..38a9bbbf23ccbf32e7acaa233f5241e2dca2e95a 100644 (file)
@@ -186,12 +186,11 @@ gtk_media_controls_measure (GtkWidget      *widget,
 static void
 gtk_media_controls_size_allocate (GtkWidget           *widget,
                                   const GtkAllocation *allocation,
-                                  int                  baseline,
-                                  GtkAllocation       *out_clip)
+                                  int                  baseline)
 {
   GtkMediaControls *controls = GTK_MEDIA_CONTROLS (widget);
 
-  gtk_widget_size_allocate (controls->box, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (controls->box, allocation, baseline);
 }
 
 static void
index 946bbb1444f39017e573a478dfc85badc6d41dc2..32bf9f56f4f93344cc6ee424b52c8326be9800bf 100644 (file)
@@ -234,8 +234,7 @@ static void     gtk_menu_realize           (GtkWidget        *widget);
 static void     gtk_menu_unrealize         (GtkWidget        *widget);
 static void     gtk_menu_size_allocate     (GtkWidget           *widget,
                                             const GtkAllocation *allocation,
-                                            int                  baseline,
-                                            GtkAllocation       *out_clip);
+                                            int                  baseline);
 static void     gtk_menu_show              (GtkWidget        *widget);
 static void     gtk_menu_snapshot          (GtkWidget        *widget,
                                             GtkSnapshot      *snapshot);
@@ -2634,8 +2633,7 @@ calculate_line_heights (GtkMenu *menu,
 static void
 gtk_menu_size_allocate (GtkWidget           *widget,
                         const GtkAllocation *allocation,
-                        int                  baseline,
-                        GtkAllocation       *out_clip)
+                        int                  baseline)
 {
   GtkMenu *menu;
   GtkMenuPrivate *priv;
@@ -2681,13 +2679,13 @@ gtk_menu_size_allocate (GtkWidget           *widget,
   arrow_allocation.height = arrow_border.top;
 
   if (priv->upper_arrow_visible)
-    gtk_widget_size_allocate (priv->top_arrow_widget, &arrow_allocation, -1, out_clip);
+    gtk_widget_size_allocate (priv->top_arrow_widget, &arrow_allocation, -1);
 
   arrow_allocation.y = height - y - arrow_border.bottom;
   arrow_allocation.height = arrow_border.bottom;
 
   if (priv->lower_arrow_visible)
-    gtk_widget_size_allocate (priv->bottom_arrow_widget, &arrow_allocation, -1, out_clip);
+    gtk_widget_size_allocate (priv->bottom_arrow_widget, &arrow_allocation, -1);
 
   width = MAX (1, width);
   height = MAX (1, height);
@@ -2732,7 +2730,7 @@ gtk_menu_size_allocate (GtkWidget           *widget,
               gtk_menu_item_toggle_size_allocate (GTK_MENU_ITEM (child),
                                                   priv->toggle_size);
 
-              gtk_widget_size_allocate (child, &child_allocation, -1, out_clip);
+              gtk_widget_size_allocate (child, &child_allocation, -1);
             }
         }
     }
index 27e444057edb5bbc6334d30a43afa41d62b00938..6be6f6c5cc7ca6c55bd87d3a1d4c10f3e66bd483 100644 (file)
@@ -89,8 +89,7 @@ static void gtk_menu_bar_measure (GtkWidget     *widget,
                                   int            *natural_baseline);
 static void gtk_menu_bar_size_allocate     (GtkWidget           *widget,
                                             const GtkAllocation *allocation,
-                                            int                  baseline,
-                                            GtkAllocation       *out_clip);
+                                            int                  baseline);
 static void gtk_menu_bar_hierarchy_changed (GtkWidget       *widget,
                                            GtkWidget       *old_toplevel);
 static gint gtk_menu_bar_get_popup_delay   (GtkMenuShell    *menu_shell);
@@ -341,8 +340,7 @@ gtk_menu_bar_measure (GtkWidget      *widget,
 static void
 gtk_menu_bar_size_allocate (GtkWidget           *widget,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkMenuBar *menu_bar = GTK_MENU_BAR (widget);
   GtkMenuBarPrivate *priv = menu_bar->priv;
@@ -414,7 +412,7 @@ gtk_menu_bar_size_allocate (GtkWidget           *widget,
           else
             child_allocation.x += remaining_space.width;
 
-          gtk_widget_size_allocate (request->data, &child_allocation, -1, out_clip);
+          gtk_widget_size_allocate (request->data, &child_allocation, -1);
         }
     }
   else
@@ -468,7 +466,7 @@ gtk_menu_bar_size_allocate (GtkWidget           *widget,
           else
             child_allocation.y += remaining_space.height;
 
-          gtk_widget_size_allocate (request->data, &child_allocation, -1, out_clip);
+          gtk_widget_size_allocate (request->data, &child_allocation, -1);
         }
     }
 
index a9b4c56812772c3fe46d5b42a6f4a0d7919e5a46..401ce6746d5dd87d70c7e616c5a0628b7741b3c0 100644 (file)
@@ -254,14 +254,11 @@ gtk_menu_item_actionable_interface_init (GtkActionableInterface *iface)
 static void
 gtk_menu_item_size_allocate (GtkWidget           *widget,
                              const GtkAllocation *allocation,
-                             int                  baseline,
-                             GtkAllocation       *out_clip)
+                             int                  baseline)
 {
   GtkMenuItem *menu_item = GTK_MENU_ITEM (widget);
   GtkMenuItemPrivate *priv = menu_item->priv;
   GtkAllocation child_allocation;
-  GtkAllocation arrow_clip = { 0 };
-  GtkAllocation child_clip = *allocation;
   GtkTextDirection direction;
   GtkPackDirection child_pack_dir;
   GtkWidget *child;
@@ -331,14 +328,12 @@ gtk_menu_item_size_allocate (GtkWidget           *widget,
           arrow_alloc.y = child_allocation.y +
             (child_allocation.height - arrow_alloc.height) / 2;
 
-          gtk_widget_size_allocate(priv->arrow_widget, &arrow_alloc, baseline, &arrow_clip);
-          gdk_rectangle_union (out_clip, &arrow_clip, out_clip);
+          gtk_widget_size_allocate(priv->arrow_widget, &arrow_alloc, baseline);
         }
 
       child_allocation.width = MAX (1, child_allocation.width);
 
-      gtk_widget_size_allocate (child, &child_allocation, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (child, &child_allocation, baseline);
     }
 
   if (priv->submenu)
index 51dff3739107479d5e202f0ad2e860a7e639e46e..626fc6e819bec5be6682570bbd1a2121eae9d6f5 100644 (file)
@@ -752,19 +752,16 @@ gtk_model_button_measure (GtkWidget      *widget,
 static void
 gtk_model_button_size_allocate (GtkWidget           *widget,
                                 const GtkAllocation *allocation,
-                                int                  baseline,
-                                GtkAllocation       *out_clip)
+                                int                  baseline)
 {
   if (GTK_MODEL_BUTTON (widget)->iconic)
     {
       GTK_WIDGET_CLASS (gtk_model_button_parent_class)->size_allocate (widget,
                                                                        allocation,
-                                                                       baseline,
-                                                                       out_clip);
+                                                                       baseline);
     }
   else
     {
-      GtkAllocation child_clip = *allocation;
       GtkModelButton *button;
       GtkAllocation child_allocation;
       GtkWidget *child;
@@ -795,8 +792,7 @@ gtk_model_button_size_allocate (GtkWidget           *widget,
       child_allocation.width = check_nat_width;
       child_allocation.height = check_nat_height;
 
-      gtk_widget_size_allocate (button->indicator_widget, &child_allocation, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (button->indicator_widget, &child_allocation, baseline);
 
       if (child && gtk_widget_get_visible (child))
         {
@@ -823,8 +819,7 @@ gtk_model_button_size_allocate (GtkWidget           *widget,
           if (baseline != -1)
             baseline -= border.top;
 
-          gtk_widget_size_allocate (child, &child_allocation, baseline, &child_clip);
-          gdk_rectangle_union (out_clip, &child_clip, out_clip);
+          gtk_widget_size_allocate (child, &child_allocation, baseline);
         }
     }
 }
index 96533a2b89f1f950064edf523136c83f884e6db1..00db84200efd93c698fee39e62d0f81cf541c8a3 100644 (file)
@@ -372,8 +372,7 @@ static void gtk_notebook_measure (GtkWidget      *widget,
                                   int            *natural_baseline);
 static void gtk_notebook_size_allocate       (GtkWidget           *widget,
                                               const GtkAllocation *allocation,
-                                              int                  baseline,
-                                              GtkAllocation       *out_clip);
+                                              int                  baseline);
 static void gtk_notebook_snapshot            (GtkWidget        *widget,
                                               GtkSnapshot      *snapshot);
 static gboolean gtk_notebook_popup_menu      (GtkWidget        *widget);
@@ -463,8 +462,7 @@ static void gtk_notebook_measure_tabs        (GtkGizmo         *gizmo,
                                               gint             *natural_baseline);
 static void gtk_notebook_allocate_tabs       (GtkGizmo            *gizmo,
                                               const GtkAllocation *allocation,
-                                              int               baseline,
-                                              GtkAllocation    *out_clip);
+                                              int               baseline);
 static gboolean gtk_notebook_snapshot_tabs   (GtkGizmo         *gizmo,
                                               GtkSnapshot      *snapshot);
 
@@ -2064,8 +2062,7 @@ gtk_notebook_measure (GtkWidget      *widget,
 static void
 gtk_notebook_allocate_tabs (GtkGizmo            *gizmo,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkWidget *widget = gtk_widget_get_parent (gtk_widget_get_parent (GTK_WIDGET (gizmo)));
   GtkNotebook *notebook = GTK_NOTEBOOK (gtk_widget_get_parent (widget));
@@ -2076,13 +2073,12 @@ gtk_notebook_allocate_tabs (GtkGizmo            *gizmo,
 static void
 gtk_notebook_size_allocate (GtkWidget           *widget,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkNotebook *notebook = GTK_NOTEBOOK (widget);
   GtkNotebookPrivate *priv = notebook->priv;
 
-  gtk_widget_size_allocate (priv->box, allocation, -1, out_clip);
+  gtk_widget_size_allocate (priv->box, allocation, -1);
 }
 
 static void
@@ -3929,8 +3925,7 @@ measure_tab (GtkGizmo       *gizmo,
 static void
 allocate_tab (GtkGizmo            *gizmo,
               const GtkAllocation *allocation,
-              int                  baseline,
-              GtkAllocation       *out_clip)
+              int                  baseline)
 {
   GtkNotebook *notebook = g_object_get_data (G_OBJECT (gizmo), "notebook");
   GtkNotebookPrivate *priv = notebook->priv;
@@ -3977,7 +3972,7 @@ allocate_tab (GtkGizmo            *gizmo,
         }
     }
 
-  gtk_widget_size_allocate (page->tab_label, &child_allocation, baseline, out_clip);
+  gtk_widget_size_allocate (page->tab_label, &child_allocation, baseline);
 }
 
 static gint
@@ -4525,7 +4520,7 @@ gtk_notebook_allocate_arrows (GtkNotebook   *notebook,
                               GtkAllocation *allocation)
 {
   GtkNotebookPrivate *priv = notebook->priv;
-  GtkAllocation arrow_allocation, arrow_clip;
+  GtkAllocation arrow_allocation;
   gint size1, size2, min, nat;
   guint i, ii;
 
@@ -4553,8 +4548,7 @@ gtk_notebook_allocate_arrows (GtkNotebook   *notebook,
               arrow_allocation.width = min;
               gtk_widget_size_allocate (priv->arrow_widget[ii],
                                         &arrow_allocation,
-                                        -1,
-                                        &arrow_clip);
+                                        -1);
               allocation->x += min;
               allocation->width -= min;
             }
@@ -4564,8 +4558,7 @@ gtk_notebook_allocate_arrows (GtkNotebook   *notebook,
               arrow_allocation.width = min;
               gtk_widget_size_allocate (priv->arrow_widget[ii],
                                         &arrow_allocation,
-                                        -1,
-                                        &arrow_clip);
+                                        -1);
               allocation->width -= min;
             }
         }
@@ -4587,11 +4580,11 @@ gtk_notebook_allocate_arrows (GtkNotebook   *notebook,
           arrow_allocation.width = size1;
           arrow_allocation.height = min;
           if (priv->arrow_widget[0])
-            gtk_widget_size_allocate (priv->arrow_widget[0], &arrow_allocation, -1, &arrow_clip);
+            gtk_widget_size_allocate (priv->arrow_widget[0], &arrow_allocation, -1);
           arrow_allocation.x += size1;
           arrow_allocation.width = size2;
           if (priv->arrow_widget[1])
-            gtk_widget_size_allocate (priv->arrow_widget[1], &arrow_allocation, -1, &arrow_clip);
+            gtk_widget_size_allocate (priv->arrow_widget[1], &arrow_allocation, -1);
           allocation->y += min;
           allocation->height -= min;
         }
@@ -4609,11 +4602,11 @@ gtk_notebook_allocate_arrows (GtkNotebook   *notebook,
           arrow_allocation.width = size1;
           arrow_allocation.height = min;
           if (priv->arrow_widget[2])
-            gtk_widget_size_allocate (priv->arrow_widget[2], &arrow_allocation, -1, &arrow_clip);
+            gtk_widget_size_allocate (priv->arrow_widget[2], &arrow_allocation, -1);
           arrow_allocation.x += size1;
           arrow_allocation.width = size2;
           if (priv->arrow_widget[3])
-            gtk_widget_size_allocate (priv->arrow_widget[3], &arrow_allocation, -1, &arrow_clip);
+            gtk_widget_size_allocate (priv->arrow_widget[3], &arrow_allocation, -1);
           allocation->height -= min;
         }
       break;
@@ -4959,7 +4952,7 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook          *notebook,
   GtkPositionType tab_pos;
   gint left_x, right_x, top_y, bottom_y, anchor;
   gboolean gap_left, packing_changed;
-  GtkAllocation child_allocation, drag_allocation, page_clip;
+  GtkAllocation child_allocation, drag_allocation;
   GtkOrientation tab_expand_orientation;
 
   g_assert (priv->cur_page != NULL);
@@ -5141,18 +5134,18 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook          *notebook,
         {
           GtkAllocation fixed_allocation = { priv->drag_surface_x, priv->drag_surface_y,
                                              child_allocation.width, child_allocation.height };
-          gtk_widget_size_allocate (page->tab_widget, &fixed_allocation, -1, &page_clip);
+          gtk_widget_size_allocate (page->tab_widget, &fixed_allocation, -1);
         }
       else if (page == priv->detached_tab && priv->operation == DRAG_OPERATION_DETACH)
         {
           /* needs to be allocated at 0,0
            * to be shown in the drag window */
           GtkAllocation fixed_allocation = { 0, 0, child_allocation.width, child_allocation.height };
-          gtk_widget_size_allocate (page->tab_widget, &fixed_allocation, -1, &page_clip);
+          gtk_widget_size_allocate (page->tab_widget, &fixed_allocation, -1);
         }
       else if (gtk_notebook_page_tab_label_is_visible (page))
         {
-          gtk_widget_size_allocate (page->tab_widget, &child_allocation, -1, &page_clip);
+          gtk_widget_size_allocate (page->tab_widget, &child_allocation, -1);
         }
 
       /* calculate whether to leave a gap based on reorder operation or not */
index f101bce05b8db390df7f6c6a984883dfdc7eec2b..a7fb2204696ba35290bf0e7407acdd278509fd3e 100644 (file)
@@ -287,7 +287,6 @@ gtk_overlay_child_allocate (GtkOverlay      *overlay,
                             GtkOverlayChild *child)
 {
   GtkAllocation child_allocation;
-  GtkAllocation child_clip;
 
   if (!gtk_widget_get_visible (widget))
     return;
@@ -295,14 +294,13 @@ gtk_overlay_child_allocate (GtkOverlay      *overlay,
   gtk_overlay_compute_child_allocation (overlay, widget, child, &child_allocation);
 
   gtk_overlay_child_update_style_classes (overlay, widget, &child_allocation);
-  gtk_widget_size_allocate (widget, &child_allocation, -1, &child_clip);
+  gtk_widget_size_allocate (widget, &child_allocation, -1);
 }
 
 static void
 gtk_overlay_size_allocate (GtkWidget           *widget,
                            const GtkAllocation *allocation,
-                           int                  baseline,
-                           GtkAllocation       *out_clip)
+                           int                  baseline)
 {
   GtkOverlay *overlay = GTK_OVERLAY (widget);
   GtkWidget *child;
@@ -310,7 +308,7 @@ gtk_overlay_size_allocate (GtkWidget           *widget,
 
   main_widget = gtk_bin_get_child (GTK_BIN (overlay));
   if (main_widget && gtk_widget_get_visible (main_widget))
-    gtk_widget_size_allocate (main_widget, allocation, -1, out_clip);
+    gtk_widget_size_allocate (main_widget, allocation, -1);
 
   for (child = gtk_widget_get_first_child (widget);
        child != NULL;
index 5464c518c767dba1861575ad6eef0f23c77ba930..369468c0a6889875216596848bc1d702def3597c 100644 (file)
@@ -217,8 +217,7 @@ static void     gtk_paned_measure (GtkWidget *widget,
                                    int            *natural_baseline);
 static void     gtk_paned_size_allocate         (GtkWidget           *widget,
                                                  const GtkAllocation *allocation,
-                                                 int                  baseline,
-                                                 GtkAllocation       *out_clip);
+                                                 int                  baseline);
 static void     gtk_paned_unrealize             (GtkWidget        *widget);
 static void     gtk_paned_direction_changed     (GtkWidget        *widget,
                                                  GtkTextDirection  previous_direction);
@@ -1226,12 +1225,10 @@ gtk_paned_set_child_visible (GtkPaned  *paned,
 static void
 gtk_paned_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkPaned *paned = GTK_PANED (widget);
   GtkPanedPrivate *priv = gtk_paned_get_instance_private (paned);
-  GtkAllocation child_clip;
 
   if (priv->child1 && gtk_widget_get_visible (priv->child1) &&
       priv->child2 && gtk_widget_get_visible (priv->child2))
@@ -1338,8 +1335,7 @@ gtk_paned_size_allocate (GtkWidget           *widget,
             child2_allocation.height = child2_height;
         }
 
-      gtk_widget_size_allocate (priv->handle_widget, &priv->handle_pos, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->handle_widget, &priv->handle_pos, -1);
 
       if (gtk_widget_get_mapped (widget) &&
           (old_handle_pos.x != priv->handle_pos.x ||
@@ -1351,11 +1347,9 @@ gtk_paned_size_allocate (GtkWidget           *widget,
         }
 
 
-      gtk_widget_size_allocate (priv->child1, &child1_allocation, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->child1, &child1_allocation, -1);
 
-      gtk_widget_size_allocate (priv->child2, &child2_allocation, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->child2, &child2_allocation, -1);
     }
   else
     {
@@ -1371,16 +1365,14 @@ gtk_paned_size_allocate (GtkWidget           *widget,
           gtk_paned_set_child_visible (paned, CHILD1, TRUE);
           gtk_paned_set_child_visible (paned, CHILD2, FALSE);
 
-          gtk_widget_size_allocate (priv->child1, &child_allocation, -1, &child_clip);
-          gdk_rectangle_union (out_clip, &child_clip, out_clip);
+          gtk_widget_size_allocate (priv->child1, &child_allocation, -1);
         }
       else if (priv->child2 && gtk_widget_get_visible (priv->child2))
         {
           gtk_paned_set_child_visible (paned, CHILD1, FALSE);
           gtk_paned_set_child_visible (paned, CHILD2, TRUE);
 
-          gtk_widget_size_allocate (priv->child2, &child_allocation, -1, &child_clip);
-          gdk_rectangle_union (out_clip, &child_clip, out_clip);
+          gtk_widget_size_allocate (priv->child2, &child_allocation, -1);
         }
       else
         {
index da0fd38b777d493cc904a125e7d2762d2525934e..1ef48c1a6a000ad1a433329f28808ea610a52c8d 100644 (file)
@@ -138,8 +138,7 @@ static void gtk_path_bar_measure (GtkWidget *widget,
                                   int            *natural_baseline);
 static void gtk_path_bar_size_allocate            (GtkWidget           *widget,
                                                    const GtkAllocation *allocation,
-                                                   int                  baseline,
-                                                   GtkAllocation       *out_clip);
+                                                   int                  baseline);
 static void gtk_path_bar_add                      (GtkContainer     *container,
                                                   GtkWidget        *widget);
 static void gtk_path_bar_remove                   (GtkContainer     *container,
@@ -484,8 +483,7 @@ gtk_path_bar_update_slider_buttons (GtkPathBar *path_bar)
 static void
 gtk_path_bar_size_allocate (GtkWidget           *widget,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkWidget *child;
   GtkPathBar *path_bar = GTK_PATH_BAR (widget);
@@ -498,7 +496,6 @@ gtk_path_bar_size_allocate (GtkWidget           *widget,
   gint up_slider_offset = 0;
   gint down_slider_offset = 0;
   GtkRequisition child_requisition;
-  GtkAllocation child_clip;
 
   /* No path is set; we don't have to allocate anything. */
   if (path_bar->priv->button_list == NULL)
@@ -653,8 +650,7 @@ gtk_path_bar_size_allocate (GtkWidget           *widget,
        gtk_widget_set_tooltip_text (child, NULL);
       
       gtk_widget_set_child_visible (child, TRUE);
-      gtk_widget_size_allocate (child, &child_allocation, baseline, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (child, &child_allocation, baseline);
 
       if (direction == GTK_TEXT_DIR_RTL)
         {
@@ -685,8 +681,7 @@ gtk_path_bar_size_allocate (GtkWidget           *widget,
       child_allocation.x = up_slider_offset + allocation->x;
       gtk_widget_size_allocate (path_bar->priv->up_slider_button,
                                 &child_allocation,
-                                -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+                                -1);
 
       gtk_widget_set_child_visible (path_bar->priv->up_slider_button, TRUE);
       gtk_widget_show (path_bar->priv->up_slider_button);
@@ -706,8 +701,7 @@ gtk_path_bar_size_allocate (GtkWidget           *widget,
       
       gtk_widget_size_allocate (path_bar->priv->down_slider_button,
                                 &child_allocation,
-                                -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+                                -1);
 
       gtk_widget_set_child_visible (path_bar->priv->down_slider_button, TRUE);
       gtk_widget_show (path_bar->priv->down_slider_button);
index 896d5f6096f07db75d50da6da3e5f5afe92179a5..be04da8f871d339eaaffeb4c0fba954a5915cbe6 100644 (file)
@@ -246,14 +246,13 @@ measure_contents (GtkGizmo       *gizmo,
 static void
 allocate_contents (GtkGizmo            *gizmo,
                    const GtkAllocation *allocation,
-                   int                  baseline,
-                   GtkAllocation       *out_clip)
+                   int                  baseline)
 {
   GtkPopover *popover = GTK_POPOVER (gtk_widget_get_parent (GTK_WIDGET (gizmo)));
   GtkWidget *child = gtk_bin_get_child (GTK_BIN (popover));
 
   if (child)
-    gtk_widget_size_allocate (child, allocation, -1, out_clip);
+    gtk_widget_size_allocate (child, allocation, -1);
 }
 
 static void
@@ -1325,8 +1324,7 @@ gtk_popover_measure (GtkWidget      *widget,
 static void
 gtk_popover_size_allocate (GtkWidget           *widget,
                            const GtkAllocation *allocation,
-                           int                  baseline,
-                           GtkAllocation       *out_clip)
+                           int                  baseline)
 {
   GtkPopover *popover = GTK_POPOVER (widget);
   GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
@@ -1359,7 +1357,7 @@ gtk_popover_size_allocate (GtkWidget           *widget,
       break;
     }
 
-  gtk_widget_size_allocate (priv->contents_widget, &child_alloc, -1, out_clip);
+  gtk_widget_size_allocate (priv->contents_widget, &child_alloc, -1);
 
   if (gtk_widget_get_realized (widget))
     {
@@ -1778,11 +1776,10 @@ _gtk_popover_parent_unmap (GtkWidget *widget,
 }
 
 static void
-_gtk_popover_parent_size_allocate (GtkWidget           *widget,
-                                   const GtkAllocation *allocation,
-                                   int                  baseline,
-                                   GtkAllocation       *out_clip,
-                                   GtkPopover          *popover)
+gtk_popover_parent_size_allocate (GtkWidget           *widget,
+                                  const GtkAllocation *allocation,
+                                  int                  baseline,
+                                  GtkPopover          *popover)
 {
   gtk_popover_update_position (popover);
 }
@@ -1972,7 +1969,7 @@ gtk_popover_update_relative_to (GtkPopover *popover,
                           popover);
       priv->size_allocate_id =
         g_signal_connect (priv->widget, "size-allocate",
-                          G_CALLBACK (_gtk_popover_parent_size_allocate),
+                          G_CALLBACK (gtk_popover_parent_size_allocate),
                           popover);
       priv->unmap_id =
         g_signal_connect (priv->widget, "unmap",
index 31fbec0ac76b5e6946490735987f8fa9369ef4ee..2a4292306cee05cdea0d087e13e16effba7e1814 100644 (file)
@@ -144,8 +144,7 @@ static void gtk_progress_bar_get_property         (GObject        *object,
                                                    GParamSpec     *pspec);
 static void gtk_progress_bar_size_allocate        (GtkWidget           *widget,
                                                    const GtkAllocation *allocation,
-                                                   int                  baseline,
-                                                   GtkAllocation       *out_clip);
+                                                   int                  baseline);
 
 static void     gtk_progress_bar_act_mode_enter   (GtkProgressBar *progress);
 static void     gtk_progress_bar_act_mode_leave   (GtkProgressBar *progress);
@@ -373,8 +372,7 @@ update_node_classes (GtkProgressBar *pbar)
 static void
 allocate_trough (GtkGizmo            *gizmo,
                  const GtkAllocation *allocation,
-                 int                  baseline,
-                 GtkAllocation       *out_clip)
+                 int                  baseline)
 
 {
   GtkProgressBar *pbar = GTK_PROGRESS_BAR (gtk_widget_get_parent (GTK_WIDGET (gizmo)));
@@ -442,7 +440,7 @@ allocate_trough (GtkGizmo            *gizmo,
         }
     }
 
-  gtk_widget_size_allocate (priv->progress_widget, &alloc,-1, out_clip);
+  gtk_widget_size_allocate (priv->progress_widget, &alloc,-1);
 
 }
 
@@ -620,15 +618,12 @@ get_current_text (GtkProgressBar *pbar)
 static void
 gtk_progress_bar_size_allocate (GtkWidget           *widget,
                                 const GtkAllocation *allocation,
-                                int                  baseline,
-                                GtkAllocation       *out_clip)
+                                int                  baseline)
 {
-  GtkAllocation child_clip = *allocation;
   GtkProgressBarPrivate *priv = gtk_progress_bar_get_instance_private (GTK_PROGRESS_BAR (widget));
   gint bar_width, bar_height;
   gint text_width, text_height, text_min, text_nat;
   GtkAllocation alloc;
-  GtkAllocation text_clip;
 
   if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
     {
@@ -650,8 +645,7 @@ gtk_progress_bar_size_allocate (GtkWidget           *widget,
   alloc.width = bar_width;
   alloc.height = bar_height;
 
-  gtk_widget_size_allocate (priv->trough_widget, &alloc, -1, &child_clip);
-  gdk_rectangle_union (out_clip, &child_clip, out_clip);
+  gtk_widget_size_allocate (priv->trough_widget, &alloc, -1);
 
   if (!priv->show_text)
     return;
@@ -680,8 +674,7 @@ gtk_progress_bar_size_allocate (GtkWidget           *widget,
       alloc.height = text_height;
     }
 
-  gtk_widget_size_allocate (priv->label, &alloc, -1, &text_clip);
-  gdk_rectangle_union (out_clip, &text_clip, out_clip);
+  gtk_widget_size_allocate (priv->label, &alloc, -1);
 }
 
 static void
index eb58677aa43545bf2c857f10261b7e80e3b8bc25..21adfec4d77041d5f724046573ad8c9308d23a27 100644 (file)
@@ -164,8 +164,7 @@ static void gtk_range_measure        (GtkWidget      *widget,
                                       int            *natural_baseline);
 static void gtk_range_size_allocate  (GtkWidget           *widget,
                                       const GtkAllocation *allocation,
-                                      int                  baseline,
-                                      GtkAllocation       *out_clip);
+                                      int                  baseline);
 static void gtk_range_unmap          (GtkWidget        *widget);
 
 static void gtk_range_multipress_gesture_pressed  (GtkGestureMultiPress *gesture,
@@ -235,8 +234,7 @@ static void          gtk_range_measure_trough           (GtkGizmo       *gizmo,
                                                          gint           *natural_baseline);
 static void          gtk_range_allocate_trough          (GtkGizmo            *gizmo,
                                                          const GtkAllocation *allocation,
-                                                         int                  baseline,
-                                                         GtkAllocation       *out_clip);
+                                                         int                  baseline);
 static gboolean      gtk_range_render_trough            (GtkGizmo     *gizmo,
                                                          GtkSnapshot  *snapshot);
 
@@ -1367,8 +1365,7 @@ gtk_range_measure (GtkWidget      *widget,
 static void
 gtk_range_allocate_trough (GtkGizmo            *gizmo,
                            const GtkAllocation *allocation,
-                           int                  baseline,
-                           GtkAllocation       *out_clip)
+                           int                  baseline)
 {
   GtkWidget *widget = gtk_widget_get_parent (GTK_WIDGET (gizmo));
   GtkRange *range = GTK_RANGE (widget);
@@ -1386,7 +1383,7 @@ gtk_range_allocate_trough (GtkGizmo            *gizmo,
                                      gtk_adjustment_get_value (priv->adjustment),
                                      &slider_alloc);
 
-  gtk_widget_size_allocate (priv->slider_widget, &slider_alloc, -1, out_clip);
+  gtk_widget_size_allocate (priv->slider_widget, &slider_alloc, -1);
   priv->slider_x = slider_alloc.x;
   priv->slider_y = slider_alloc.y;
 
@@ -1399,7 +1396,7 @@ gtk_range_allocate_trough (GtkGizmo            *gizmo,
       upper - page_size - lower != 0)
     {
       double level, fill;
-      GtkAllocation fill_alloc, fill_clip;
+      GtkAllocation fill_alloc;
 
       fill_alloc = *allocation;
 
@@ -1422,13 +1419,12 @@ gtk_range_allocate_trough (GtkGizmo            *gizmo,
             fill_alloc.y += allocation->height - fill_alloc.height;
         }
 
-      gtk_widget_size_allocate (priv->fill_widget, &fill_alloc, -1, &fill_clip);
-      gdk_rectangle_union (out_clip, &fill_clip, out_clip);
+      gtk_widget_size_allocate (priv->fill_widget, &fill_alloc, -1);
     }
 
   if (priv->has_origin)
     {
-      GtkAllocation highlight_alloc, highlight_clip;
+      GtkAllocation highlight_alloc;
       int min, nat;
 
       gtk_widget_measure (priv->highlight_widget,
@@ -1461,7 +1457,7 @@ gtk_range_allocate_trough (GtkGizmo            *gizmo,
           highlight_alloc.height = MAX (min, allocation->height* value);
         }
 
-      gtk_widget_size_allocate (priv->highlight_widget, &highlight_alloc, -1, &highlight_clip);
+      gtk_widget_size_allocate (priv->highlight_widget, &highlight_alloc, -1);
     }
 }
 
@@ -1555,8 +1551,7 @@ clamp_dimensions (const GtkAllocation *allocation,
 static void
 gtk_range_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkRange *range = GTK_RANGE (widget);
   GtkRangePrivate *priv = gtk_range_get_instance_private (range);
@@ -1586,7 +1581,7 @@ gtk_range_size_allocate (GtkWidget           *widget,
   box_alloc.width = box_min_width;
   box_alloc.height = box_min_height;
 
-  gtk_widget_size_allocate (priv->trough_widget, &box_alloc, -1, out_clip);
+  gtk_widget_size_allocate (priv->trough_widget, &box_alloc, -1);
 
   /* TODO: we should compute a proper clip from get_range_border(),
    * but this will at least give us outset shadows.
index 1b67c2337e9ed3b6a69680bbf0cf3e2471adbb24..c8d00190b4ea937fcc89ec250452dcd68dabbd67 100644 (file)
@@ -99,8 +99,7 @@ static void     gtk_revealer_real_add                            (GtkContainer
                                                                   GtkWidget     *child);
 static void     gtk_revealer_real_size_allocate                  (GtkWidget           *widget,
                                                                   const GtkAllocation *allocation,
-                                                                  int                  baseline,
-                                                                  GtkAllocation       *out_clip);
+                                                                  int                  baseline);
 static void gtk_revealer_measure (GtkWidget      *widget,
                                   GtkOrientation  orientation,
                                   int             for_size,
@@ -366,8 +365,7 @@ gtk_revealer_real_add (GtkContainer *container,
 static void
 gtk_revealer_real_size_allocate (GtkWidget           *widget,
                                  const GtkAllocation *allocation,
-                                 int                  baseline,
-                                 GtkAllocation       *out_clip)
+                                 int                  baseline)
 {
   GtkRevealer *revealer = GTK_REVEALER (widget);
   GtkWidget *child;
@@ -378,7 +376,7 @@ gtk_revealer_real_size_allocate (GtkWidget           *widget,
       GtkAllocation child_allocation;
 
       gtk_revealer_get_child_allocation (revealer, allocation, &child_allocation);
-      gtk_widget_size_allocate (child, &child_allocation, -1, out_clip);
+      gtk_widget_size_allocate (child, &child_allocation, -1);
     }
 }
 
index a4f924ae296119ca61118721cbf47e0eed4cc16f..cea8b3ef6d469255fbf0a055e44bff3ac37e2139 100644 (file)
@@ -323,8 +323,7 @@ gtk_scale_notify (GObject    *object,
 }
 
 static void
-gtk_scale_allocate_value (GtkScale      *scale,
-                          GtkAllocation *out_clip)
+gtk_scale_allocate_value (GtkScale *scale)
 {
   GtkScalePrivate *priv = gtk_scale_get_instance_private (scale);
   GtkWidget *widget = GTK_WIDGET (scale);
@@ -406,14 +405,13 @@ gtk_scale_allocate_value (GtkScale      *scale,
         }
     }
 
-  gtk_widget_size_allocate (priv->value_widget, &value_alloc, -1, out_clip);
+  gtk_widget_size_allocate (priv->value_widget, &value_alloc, -1);
 }
 
 static void
 gtk_scale_allocate_mark (GtkGizmo            *gizmo,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkWidget *widget = GTK_WIDGET (gizmo);
   GtkScale *scale = GTK_SCALE (gtk_widget_get_parent (gtk_widget_get_parent (widget)));
@@ -453,11 +451,11 @@ gtk_scale_allocate_mark (GtkGizmo            *gizmo,
       indicator_alloc.height = indicator_height;
     }
 
-  gtk_widget_size_allocate (mark->indicator_widget, &indicator_alloc, baseline, out_clip);
+  gtk_widget_size_allocate (mark->indicator_widget, &indicator_alloc, baseline);
 
   if (mark->label_widget)
     {
-      GtkAllocation label_alloc, label_clip;
+      GtkAllocation label_alloc;
 
       label_alloc = *allocation;
 
@@ -474,16 +472,14 @@ gtk_scale_allocate_mark (GtkGizmo            *gizmo,
             label_alloc.x = indicator_alloc.x + indicator_alloc.width;
         }
 
-      gtk_widget_size_allocate (mark->label_widget, &label_alloc, baseline, &label_clip);
-      gdk_rectangle_union (out_clip, &label_clip, out_clip);
+      gtk_widget_size_allocate (mark->label_widget, &label_alloc, baseline);
     }
 }
 
 static void
 gtk_scale_allocate_marks (GtkGizmo            *gizmo,
                           const GtkAllocation *allocation,
-                          int                  baseline,
-                          GtkAllocation       *out_clip)
+                          int                  baseline)
 {
   GtkWidget *widget = GTK_WIDGET (gizmo);
   GtkScale *scale = GTK_SCALE (gtk_widget_get_parent (widget));
@@ -499,7 +495,7 @@ gtk_scale_allocate_marks (GtkGizmo            *gizmo,
   for (m = priv->marks, i = 0; m; m = m->next, i++)
     {
       GtkScaleMark *mark = m->data;
-      GtkAllocation mark_alloc, mark_clip;
+      GtkAllocation mark_alloc;
       int mark_size;
 
       if ((mark->position == GTK_POS_TOP && widget == priv->bottom_marks_widget) ||
@@ -531,8 +527,7 @@ gtk_scale_allocate_marks (GtkGizmo            *gizmo,
           mark_alloc.y -= mark_size / 2;
         }
 
-      gtk_widget_size_allocate (mark->widget, &mark_alloc, baseline, &mark_clip);
-      gdk_rectangle_union (out_clip, &mark_clip, out_clip);
+      gtk_widget_size_allocate (mark->widget, &mark_alloc, baseline);
     }
 
   g_free (marks);
@@ -541,15 +536,14 @@ gtk_scale_allocate_marks (GtkGizmo            *gizmo,
 static void
 gtk_scale_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkScale *scale = GTK_SCALE (widget);
   GtkScalePrivate *priv = gtk_scale_get_instance_private (scale);
-  GtkAllocation marks_clip, range_rect, marks_rect;
+  GtkAllocation range_rect, marks_rect;
   GtkOrientation orientation;
 
-  GTK_WIDGET_CLASS (gtk_scale_parent_class)->size_allocate (widget, allocation, baseline, out_clip);
+  GTK_WIDGET_CLASS (gtk_scale_parent_class)->size_allocate (widget, allocation, baseline);
 
   orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (widget));
   gtk_range_get_range_rect (GTK_RANGE (scale), &range_rect);
@@ -568,8 +562,7 @@ gtk_scale_size_allocate (GtkWidget           *widget,
           marks_rect.y = 0;
           marks_rect.width = range_rect.width;
           marks_rect.height = marks_height;
-          gtk_widget_size_allocate (priv->top_marks_widget, &marks_rect, -1, &marks_clip);
-          gdk_rectangle_union (out_clip, &marks_clip, out_clip);
+          gtk_widget_size_allocate (priv->top_marks_widget, &marks_rect, -1);
         }
 
       if (priv->bottom_marks_widget)
@@ -582,8 +575,7 @@ gtk_scale_size_allocate (GtkWidget           *widget,
           marks_rect.y = range_rect.y + range_rect.height;
           marks_rect.width = range_rect.width;
           marks_rect.height = marks_height;
-          gtk_widget_size_allocate (priv->bottom_marks_widget, &marks_rect, -1, &marks_clip);
-          gdk_rectangle_union (out_clip, &marks_clip, out_clip);
+          gtk_widget_size_allocate (priv->bottom_marks_widget, &marks_rect, -1);
         }
     }
   else
@@ -599,8 +591,7 @@ gtk_scale_size_allocate (GtkWidget           *widget,
           marks_rect.x = 0;
           marks_rect.y = 0;
           marks_rect.width = marks_width;
-          gtk_widget_size_allocate (priv->top_marks_widget, &marks_rect, -1, &marks_clip);
-          gdk_rectangle_union (out_clip, &marks_clip, out_clip);
+          gtk_widget_size_allocate (priv->top_marks_widget, &marks_rect, -1);
         }
 
       if (priv->bottom_marks_widget)
@@ -614,17 +605,13 @@ gtk_scale_size_allocate (GtkWidget           *widget,
           marks_rect.y = 0;
           marks_rect.width = marks_width;
           marks_rect.height = range_rect.height;
-          gtk_widget_size_allocate (priv->bottom_marks_widget, &marks_rect, -1, &marks_clip);
-          gdk_rectangle_union (out_clip, &marks_clip, out_clip);
+          gtk_widget_size_allocate (priv->bottom_marks_widget, &marks_rect, -1);
         }
     }
 
   if (priv->value_widget)
     {
-      GtkAllocation value_clip;
-
-      gtk_scale_allocate_value (scale, &value_clip);
-      gdk_rectangle_union (out_clip, &value_clip, out_clip);
+      gtk_scale_allocate_value (scale);
     }
 }
 
index 7aef93f62ff6726a53e631c6f4f2089ac0fb8cb9..ed2d9bc22e8d01ebd57a98bb805c2996ad416f32 100644 (file)
@@ -122,13 +122,12 @@ gtk_scrollbar_measure (GtkWidget      *widget,
 static void
 gtk_scrollbar_size_allocate (GtkWidget           *widget,
                              const GtkAllocation *allocation,
-                             int                  baseline,
-                             GtkAllocation       *out_clip)
+                             int                  baseline)
 {
   GtkScrollbar *self = GTK_SCROLLBAR (widget);
   GtkScrollbarPrivate *priv = gtk_scrollbar_get_instance_private (self);
 
-  gtk_widget_size_allocate (priv->box, allocation, -1, out_clip);
+  gtk_widget_size_allocate (priv->box, allocation, -1);
 }
 
 static void
index c0e018ba72c1b613d151775819d4fe2ef4bf1af6..761a09c3c673b87b470731d5953bf3377ffe9067 100644 (file)
@@ -334,8 +334,7 @@ static void     gtk_scrolled_window_snapshot           (GtkWidget         *widge
                                                         GtkSnapshot       *snapshot);
 static void     gtk_scrolled_window_size_allocate      (GtkWidget           *widget,
                                                         const GtkAllocation *allocation,
-                                                        int                  baseline,
-                                                        GtkAllocation        *out_clip);
+                                                        int                  baseline);
 static gboolean gtk_scrolled_window_focus              (GtkWidget         *widget,
                                                         GtkDirectionType   direction);
 static void     gtk_scrolled_window_add                (GtkContainer      *container,
@@ -1390,8 +1389,7 @@ scroll_controller_decelerate (GtkEventControllerScroll *scroll,
 static void
 gtk_scrolled_window_size_allocate (GtkWidget           *widget,
                                    const GtkAllocation *allocation,
-                                   int                  baseline,
-                                   GtkAllocation       *out_clip)
+                                   int                  baseline)
 {
   GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget);
   GtkScrolledWindowPrivate *priv = scrolled_window->priv;
@@ -1619,21 +1617,19 @@ gtk_scrolled_window_size_allocate (GtkWidget           *widget,
   gtk_widget_set_child_visible (priv->hscrollbar, priv->hscrollbar_visible);
   if (priv->hscrollbar_visible)
     {
-      GtkAllocation clip;
       gtk_scrolled_window_allocate_scrollbar (scrolled_window,
                                               priv->hscrollbar,
                                               &child_allocation);
-      gtk_widget_size_allocate (priv->hscrollbar, &child_allocation, -1, &clip);
+      gtk_widget_size_allocate (priv->hscrollbar, &child_allocation, -1);
     }
 
   gtk_widget_set_child_visible (priv->vscrollbar, priv->vscrollbar_visible);
   if (priv->vscrollbar_visible)
     {
-      GtkAllocation clip;
       gtk_scrolled_window_allocate_scrollbar (scrolled_window,
                                               priv->vscrollbar,
                                               &child_allocation);
-      gtk_widget_size_allocate (priv->vscrollbar, &child_allocation, -1, &clip);
+      gtk_widget_size_allocate (priv->vscrollbar, &child_allocation, -1);
     }
 
   gtk_scrolled_window_check_attach_pan_gesture (scrolled_window);
@@ -3048,7 +3044,6 @@ gtk_scrolled_window_allocate_child (GtkScrolledWindow   *swindow,
   GtkScrolledWindowPrivate *priv = gtk_scrolled_window_get_instance_private (swindow);
   GtkWidget     *widget = GTK_WIDGET (swindow), *child;
   GtkAllocation  child_allocation;
-  GtkAllocation child_clip;
   int sb_width;
   int sb_height;
 
@@ -3090,7 +3085,7 @@ gtk_scrolled_window_allocate_child (GtkScrolledWindow   *swindow,
       child_allocation.height = MAX (1, child_allocation.height - sb_height);
     }
 
-  gtk_widget_size_allocate (child, &child_allocation, -1, &child_clip);
+  gtk_widget_size_allocate (child, &child_allocation, -1);
 }
 
 static void
index 690caca8f0fd334231c3d6d4ccf8b068586fe0b5..816e99d632e703b98e716c8e07295b5786e92b44 100644 (file)
@@ -406,13 +406,12 @@ gtk_search_bar_measure (GtkWidget      *widget,
 static void
 gtk_search_bar_size_allocate (GtkWidget           *widget,
                               const GtkAllocation *allocation,
-                              int                  baseline,
-                              GtkAllocation       *out_clip)
+                              int                  baseline)
 {
   GtkSearchBar *bar = GTK_SEARCH_BAR (widget);
   GtkSearchBarPrivate *priv = gtk_search_bar_get_instance_private (bar);
 
-  gtk_widget_size_allocate (priv->revealer, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->revealer, allocation, baseline);
 }
 
 static void
index c38feb14e5304cd108b3f3a22d3d9469317e5bb1..d1c222b32dab4cff0b2d4c37c424cd3741f7b261 100644 (file)
@@ -519,12 +519,11 @@ gtk_shortcuts_shortcut_snapshot (GtkWidget   *widget,
 static void
 gtk_shortcuts_shortcut_size_allocate (GtkWidget           *widget,
                                       const GtkAllocation *allocation,
-                                      int                  baseline,
-                                      GtkAllocation       *out_clip)
+                                      int                  baseline)
 {
-  GTK_WIDGET_CLASS (gtk_shortcuts_shortcut_parent_class)->size_allocate (widget, allocation, baseline, out_clip);
+  GTK_WIDGET_CLASS (gtk_shortcuts_shortcut_parent_class)->size_allocate (widget, allocation, baseline);
 
-  gtk_widget_size_allocate (GTK_WIDGET (GTK_SHORTCUTS_SHORTCUT (widget)->box), allocation, -1, out_clip);
+  gtk_widget_size_allocate (GTK_WIDGET (GTK_SHORTCUTS_SHORTCUT (widget)->box), allocation, -1);
 }
 
 static void
index c6435e602d8109f89fb21a9709e7c7da0d80273a..92e0d2dcc2fe57cd27b4cbcd2398aa20c4869cad 100644 (file)
@@ -262,8 +262,7 @@ static void gtk_spin_button_measure (GtkWidget      *widget,
                                      int            *natural_baseline);
 static void gtk_spin_button_size_allocate  (GtkWidget           *widget,
                                             const GtkAllocation *allocation,
-                                            int                  baseline,
-                                            GtkAllocation       *out_clip);
+                                            int                  baseline);
 static gboolean gtk_spin_button_event      (GtkWidget          *widget,
                                             GdkEvent           *event);
 static void gtk_spin_button_grab_notify    (GtkWidget          *widget,
@@ -1082,12 +1081,11 @@ gtk_spin_button_measure (GtkWidget      *widget,
 static void
 gtk_spin_button_size_allocate (GtkWidget           *widget,
                                const GtkAllocation *allocation,
-                               int                  baseline,
-                               GtkAllocation       *out_clip)
+                               int                  baseline)
 {
   GtkSpinButtonPrivate *priv = gtk_spin_button_get_instance_private (GTK_SPIN_BUTTON (widget));
 
-  gtk_widget_size_allocate (priv->box, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->box, allocation, baseline);
 }
 
 static gboolean
index a774abddf4dca3250b17ea2b16237a9a2be80ec5..b508aee6590ad892c892bb30171cf6cbec1d44c9 100644 (file)
@@ -170,8 +170,7 @@ static void     gtk_stack_compute_expand                 (GtkWidget     *widget,
                                                           gboolean      *vexpand);
 static void     gtk_stack_size_allocate                  (GtkWidget           *widget,
                                                           const GtkAllocation *allocation,
-                                                          int                  baseline,
-                                                          GtkAllocation       *out_clip);
+                                                          int                  baseline);
 static void     gtk_stack_snapshot                       (GtkWidget     *widget,
                                                           GtkSnapshot   *snapshot);
 static void     gtk_stack_measure                        (GtkWidget      *widget,
@@ -2003,12 +2002,10 @@ gtk_stack_snapshot (GtkWidget   *widget,
 static void
 gtk_stack_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkStack *stack = GTK_STACK (widget);
   GtkStackPrivate *priv = gtk_stack_get_instance_private (stack);
-  GdkRectangle child_clip;
   GtkAllocation child_allocation;
 
   child_allocation.x = get_bin_window_x (stack);
@@ -2027,8 +2024,7 @@ gtk_stack_size_allocate (GtkWidget           *widget,
                           &min, &nat, NULL, NULL);
       child_allocation.height = MAX (min, allocation->height);
 
-      gtk_widget_size_allocate (priv->last_visible_child->widget, &child_allocation, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->last_visible_child->widget, &child_allocation, -1);
 
       if (!gdk_rectangle_equal (&priv->last_visible_surface_allocation,
                                 &child_allocation))
@@ -2073,8 +2069,7 @@ gtk_stack_size_allocate (GtkWidget           *widget,
             child_allocation.y = (allocation->height - child_allocation.height);
         }
 
-      gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation, -1, &child_clip);
-      gdk_rectangle_union (out_clip, &child_clip, out_clip);
+      gtk_widget_size_allocate (priv->visible_child->widget, &child_allocation, -1);
     }
 }
 
index 2c9dfaaee6cc4520241de25b4b0c4016f0dcc4c7..65fe1e9b4681ab62c7a758e98879900adbf4b277 100644 (file)
@@ -149,12 +149,11 @@ gtk_statusbar_measure (GtkWidget      *widget,
 static void
 gtk_statusbar_size_allocate (GtkWidget           *widget,
                              const GtkAllocation *allocation,
-                             int                  baseline,
-                             GtkAllocation       *out_clip)
+                             int                  baseline)
 {
   GtkStatusbarPrivate *priv = gtk_statusbar_get_instance_private (GTK_STATUSBAR (widget));
 
-  gtk_widget_size_allocate (priv->frame, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (priv->frame, allocation, baseline);
 }
 
 static void
index 71121abb5750cb64d282812beeb97a1121537bee..fb3b21f7326db0425069c0a03348d854a49ec6c0 100644 (file)
@@ -318,12 +318,10 @@ gtk_switch_measure (GtkWidget      *widget,
 static void
 gtk_switch_size_allocate (GtkWidget           *widget,
                           const GtkAllocation *allocation,
-                          int                  baseline,
-                          GtkAllocation       *out_clip)
+                          int                  baseline)
 {
   GtkSwitch *self = GTK_SWITCH (widget);
   GtkSwitchPrivate *priv = gtk_switch_get_instance_private (self);
-  GtkAllocation child_clip;
   GtkAllocation child_alloc;
   GtkAllocation slider_alloc;
   int min;
@@ -333,8 +331,7 @@ gtk_switch_size_allocate (GtkWidget           *widget,
   slider_alloc.width = allocation->width / 2;
   slider_alloc.height = allocation->height;
 
-  gtk_widget_size_allocate (priv->slider, &slider_alloc, -1, &child_clip);
-  gdk_rectangle_union (out_clip, &child_clip, out_clip);
+  gtk_widget_size_allocate (priv->slider, &slider_alloc, -1);
 
 
   /* Center ON label in left half */
@@ -344,8 +341,7 @@ gtk_switch_size_allocate (GtkWidget           *widget,
   gtk_widget_measure (priv->on_label, GTK_ORIENTATION_VERTICAL, min, &min, NULL, NULL, NULL);
   child_alloc.y = (allocation->height - min) / 2;
   child_alloc.height = min;
-  gtk_widget_size_allocate (priv->on_label, &child_alloc, -1, &child_clip);
-  gdk_rectangle_union (out_clip, &child_clip, out_clip);
+  gtk_widget_size_allocate (priv->on_label, &child_alloc, -1);
 
   /* Center OFF label in right half */
   gtk_widget_measure (priv->off_label, GTK_ORIENTATION_HORIZONTAL, -1, &min, NULL, NULL, NULL);
@@ -354,8 +350,7 @@ gtk_switch_size_allocate (GtkWidget           *widget,
   gtk_widget_measure (priv->off_label, GTK_ORIENTATION_VERTICAL, min, &min, NULL, NULL, NULL);
   child_alloc.y = (allocation->height - min) / 2;
   child_alloc.height = min;
-  gtk_widget_size_allocate (priv->off_label, &child_alloc, -1, &child_clip);
-  gdk_rectangle_union (out_clip, &child_clip, out_clip);
+  gtk_widget_size_allocate (priv->off_label, &child_alloc, -1);
 }
 
 static void
index a2b088d3d54232f6afde610ca24f07c9a01fa4e0..441df59e9ab2f0febac55938de07b8dc95d5dd49 100644 (file)
@@ -370,8 +370,7 @@ static void gtk_text_view_measure (GtkWidget      *widget,
                                    int            *natural_baseline);
 static void gtk_text_view_size_allocate        (GtkWidget           *widget,
                                                 const GtkAllocation *allocation,
-                                                int                  baseline,
-                                                GtkAllocation       *out_clip);
+                                                int                  baseline);
 static void gtk_text_view_realize              (GtkWidget        *widget);
 static void gtk_text_view_unrealize            (GtkWidget        *widget);
 static void gtk_text_view_map                  (GtkWidget        *widget);
@@ -3959,11 +3958,10 @@ gtk_text_view_update_child_allocation (GtkTextView      *text_view,
                                        GtkTextViewChild *vc)
 {
   GtkAllocation allocation;
-  GtkAllocation clip;
 
   gtk_text_view_compute_child_allocation (text_view, vc, &allocation);
   
-  gtk_widget_size_allocate (vc->widget, &allocation, -1, &clip);
+  gtk_widget_size_allocate (vc->widget, &allocation, -1);
 
 #if 0
   g_print ("allocation for %p allocated to %d,%d yoffset = %d\n",
@@ -4045,7 +4043,6 @@ gtk_text_view_allocate_children (GtkTextView *text_view)
       else
         {
           GtkAllocation allocation;
-          GtkAllocation clip;
           GtkRequisition child_req;
              
           allocation.x = child->x;
@@ -4065,7 +4062,7 @@ gtk_text_view_allocate_children (GtkTextView *text_view)
           allocation.width = child_req.width;
           allocation.height = child_req.height;
           
-          gtk_widget_size_allocate (child->widget, &allocation, -1, &clip);
+          gtk_widget_size_allocate (child->widget, &allocation, -1);
         }
 
       tmp_list = tmp_list->next;
@@ -4075,8 +4072,7 @@ gtk_text_view_allocate_children (GtkTextView *text_view)
 static void
 gtk_text_view_size_allocate (GtkWidget           *widget,
                              const GtkAllocation *allocation,
-                             int                  baseline,
-                             GtkAllocation       *out_clip)
+                             int                  baseline)
 {
   GtkTextView *text_view;
   GtkTextViewPrivate *priv;
index 60dd8bfc6f2bafad4091eaa9fed892a679e6a34e..ffded91c29f77951e46f06e6b0c22ced42c0a052 100644 (file)
@@ -194,8 +194,7 @@ static void       gtk_toolbar_snapshot             (GtkWidget           *widget,
                                                     GtkSnapshot         *snapshot);
 static void       gtk_toolbar_size_allocate        (GtkWidget           *widget,
                                                     const GtkAllocation *allocation,
-                                                    int                  baseline,
-                                                    GtkAllocation       *out_clip);
+                                                    int                  baseline);
 static void       gtk_toolbar_style_updated        (GtkWidget           *widget);
 static gboolean   gtk_toolbar_focus                (GtkWidget           *widget,
                                                    GtkDirectionType     dir);
@@ -1206,8 +1205,7 @@ rebuild_menu (GtkToolbar *toolbar)
 static void
 gtk_toolbar_size_allocate (GtkWidget           *widget,
                            const GtkAllocation *allocation,
-                           int                  baseline,
-                           GtkAllocation       *out_clip)
+                           int                  baseline)
 {
   GtkToolbar *toolbar = GTK_TOOLBAR (widget);
   GtkToolbarPrivate *priv = toolbar->priv;
@@ -1512,7 +1510,7 @@ gtk_toolbar_size_allocate (GtkWidget           *widget,
 
   if (need_arrow)
     {
-      gtk_widget_size_allocate (GTK_WIDGET (priv->arrow_button), &arrow_allocation, -1, out_clip);
+      gtk_widget_size_allocate (GTK_WIDGET (priv->arrow_button), &arrow_allocation, -1);
       gtk_widget_show (GTK_WIDGET (priv->arrow_button));
     }
   else
@@ -2955,10 +2953,8 @@ static void
 toolbar_content_size_allocate (ToolbarContent *content,
                               GtkAllocation  *allocation)
 {
-  GtkAllocation clip;
-
   content->allocation = *allocation;
-  gtk_widget_size_allocate (GTK_WIDGET (content->item), allocation, -1, &clip);
+  gtk_widget_size_allocate (GTK_WIDGET (content->item), allocation, -1);
 }
 
 static void
index 2ef45e0d9a8c430b1bae9bcbcb512e8d5eedfce7..64ddbcc2d98d9baecfc59abde20e3c0408e71e5d 100644 (file)
@@ -598,8 +598,7 @@ static void     gtk_tree_view_measure              (GtkWidget        *widget,
                                                     int            *natural_baseline);
 static void     gtk_tree_view_size_allocate        (GtkWidget           *widget,
                                                     const GtkAllocation *allocation,
-                                                    int                  baseline,
-                                                    GtkAllocation       *out_clip);
+                                                    int                  baseline);
 static void     gtk_tree_view_snapshot             (GtkWidget        *widget,
                                                     GtkSnapshot      *snapshot);
 static gboolean gtk_tree_view_key_press            (GtkWidget        *widget,
@@ -2529,7 +2528,6 @@ gtk_tree_view_size_allocate_drag_column (GtkWidget *widget)
 {
   GtkTreeView *tree_view = GTK_TREE_VIEW (widget);
   GtkAllocation drag_allocation;
-  GtkAllocation clip;
   GtkWidget *button;
 
   if (tree_view->priv->drag_column == NULL)
@@ -2541,14 +2539,13 @@ gtk_tree_view_size_allocate_drag_column (GtkWidget *widget)
   drag_allocation.y = 0;
   drag_allocation.width = gdk_surface_get_width (tree_view->priv->drag_surface);
   drag_allocation.height = gdk_surface_get_height (tree_view->priv->drag_surface);
-  gtk_widget_size_allocate (button, &drag_allocation, -1, &clip);
+  gtk_widget_size_allocate (button, &drag_allocation, -1);
 }
 
 static void
 gtk_tree_view_size_allocate (GtkWidget           *widget,
                              const GtkAllocation *allocation,
-                             int                  baseline,
-                             GtkAllocation       *out_clip)
+                             int                  baseline)
 {
   GtkTreeView *tree_view = GTK_TREE_VIEW (widget);
   GList *tmp_list;
@@ -2682,7 +2679,7 @@ gtk_tree_view_size_allocate (GtkWidget           *widget,
       child_rect.y = MAX (min_y, MIN (max_y, child_rect.y));
 
       gtk_tree_path_free (path);
-      gtk_widget_size_allocate (child->widget, &child_rect, -1, out_clip);
+      gtk_widget_size_allocate (child->widget, &child_rect, -1);
     }
 }
 
@@ -9538,7 +9535,6 @@ _gtk_tree_view_column_start_drag (GtkTreeView       *tree_view,
                                   GdkDevice         *device)
 {
   GtkAllocation allocation;
-  GtkAllocation clip;
   GtkAllocation button_allocation;
   GtkWidget *button;
   GtkStyleContext *context;
@@ -9575,7 +9571,7 @@ _gtk_tree_view_column_start_drag (GtkTreeView       *tree_view,
   tree_view->priv->drag_column_x = button_allocation.x;
   allocation = button_allocation;
   allocation.x = 0;
-  gtk_widget_size_allocate (button, &allocation, -1, &clip);
+  gtk_widget_size_allocate (button, &allocation, -1);
 
   tree_view->priv->drag_column = column;
   gdk_surface_show (tree_view->priv->drag_surface);
index a315ad739c9f02fd4fa409d28ed89456d2950c21..defb47a51d4b4acb2121b6ca3c93e55cda5eaf79 100644 (file)
@@ -2012,7 +2012,6 @@ _gtk_tree_view_column_allocate (GtkTreeViewColumn *tree_column,
 {
   GtkTreeViewColumnPrivate *priv;
   GtkAllocation             allocation = { 0, 0, 0, 0 };
-  GtkAllocation clip;
 
   g_return_if_fail (GTK_IS_TREE_VIEW_COLUMN (tree_column));
 
@@ -2036,7 +2035,7 @@ _gtk_tree_view_column_allocate (GtkTreeViewColumn *tree_column,
       allocation.width  = width;
       allocation.height = height;
 
-      gtk_widget_size_allocate (priv->button, &allocation, -1, &clip);
+      gtk_widget_size_allocate (priv->button, &allocation, -1);
     }
 
   g_object_notify_by_pspec (G_OBJECT (tree_column), tree_column_props[PROP_X_OFFSET]);
index 36f51bc7be17dcfe9ff90f928c0ac47fb6685558..5bac5661967fdaed7420da6cb5295237213c4120 100644 (file)
@@ -87,12 +87,11 @@ gtk_video_measure (GtkWidget      *widget,
 static void
 gtk_video_size_allocate (GtkWidget           *widget,
                          const GtkAllocation *allocation,
-                         int                  baseline,
-                         GtkAllocation       *out_clip)
+                         int                  baseline)
 {
   GtkVideo *self = GTK_VIDEO (widget);
 
-  gtk_widget_size_allocate (self->box, allocation, baseline, out_clip);
+  gtk_widget_size_allocate (self->box, allocation, baseline);
 }
 
 static void
index e16a5a48c35fdef272102ae9810f1e56cefab0b2..fe34de984110abe56d5081f967bd1acd3a3679d6 100644 (file)
@@ -98,8 +98,7 @@ static void gtk_viewport_snapshot                 (GtkWidget        *widget,
                                                   GtkSnapshot      *snapshot);
 static void gtk_viewport_size_allocate            (GtkWidget           *widget,
                                                    const GtkAllocation *allocation,
-                                                   int                  baseline,
-                                                   GtkAllocation       *out_clip);
+                                                   int                  baseline);
 static void gtk_viewport_adjustment_value_changed (GtkAdjustment    *adjustment,
                                                   gpointer          data);
 static void viewport_set_adjustment               (GtkViewport      *viewport,
@@ -525,8 +524,7 @@ gtk_viewport_snapshot (GtkWidget   *widget,
 static void
 gtk_viewport_size_allocate (GtkWidget           *widget,
                             const GtkAllocation *allocation,
-                            int                  baseline,
-                            GtkAllocation       *out_clip)
+                            int                  baseline)
 {
   GtkViewport *viewport = GTK_VIEWPORT (widget);
   GtkViewportPrivate *priv = gtk_viewport_get_instance_private (viewport);
@@ -543,7 +541,7 @@ gtk_viewport_size_allocate (GtkWidget           *widget,
   child = gtk_bin_get_child (GTK_BIN (widget));
   if (child && gtk_widget_get_visible (child))
     {
-      GtkAllocation child_allocation, child_clip;
+      GtkAllocation child_allocation;
 
       child_allocation.x = - gtk_adjustment_get_value (hadjustment);
       child_allocation.y = - gtk_adjustment_get_value (vadjustment);
@@ -551,7 +549,7 @@ gtk_viewport_size_allocate (GtkWidget           *widget,
       child_allocation.height = gtk_adjustment_get_upper (vadjustment);
 
       /* Explicitly ignore the child clip here. */
-      gtk_widget_size_allocate (child, &child_allocation, -1, &child_clip);
+      gtk_widget_size_allocate (child, &child_allocation, -1);
     }
 
   g_object_thaw_notify (G_OBJECT (hadjustment));
index 89fbbb1782440ac14cd2df08f30c7739b06c619a..f22b4da99741e962ce8d5bae6251474b64e68381 100644 (file)
@@ -586,8 +586,7 @@ static void gtk_widget_real_realize          (GtkWidget         *widget);
 static void    gtk_widget_real_unrealize        (GtkWidget         *widget);
 static void    gtk_widget_real_size_allocate    (GtkWidget               *widget,
                                                   const GtkAllocation     *allocation,
-                                                  int                      baseline,
-                                                  GtkAllocation           *out_clip);
+                                                  int                      baseline);
 static void    gtk_widget_real_direction_changed(GtkWidget         *widget,
                                                   GtkTextDirection   previous_direction);
 
@@ -1528,7 +1527,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
    * @allocation: (type Gtk.Allocation): the region which has been
    *   allocated to the widget.
    * @baseline: the baseline
-   * @out_clip: (out) (type Gtk.Allocation): Return address for the widget's clip
    */
   widget_signals[SIZE_ALLOCATE] =
     g_signal_new (I_("size-allocate"),
@@ -1537,10 +1535,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
                  G_STRUCT_OFFSET (GtkWidgetClass, size_allocate),
                  NULL, NULL,
                  NULL,
-                 G_TYPE_NONE, 3,
+                 G_TYPE_NONE, 2,
                  GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE,
-                  G_TYPE_INT,
-                  GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE);
+                  G_TYPE_INT);
 
   /**
    * GtkWidget::state-flags-changed:
@@ -4242,8 +4239,6 @@ get_box_padding (GtkCssStyle *style,
  * @widget: a #GtkWidget
  * @allocation: position and size to be allocated to @widget
  * @baseline: The baseline of the child, or -1
- * @out_clip: (out): Return location for @widget's clip region. The returned clip
- *   will be in the coordinate system of @widget's parent, just like @allocation.
  *
  * This function is only used by #GtkWidget subclasses, to assign a size,
  * position and (optionally) baseline to their child widgets.
@@ -4255,8 +4250,7 @@ get_box_padding (GtkCssStyle *style,
 void
 gtk_widget_size_allocate (GtkWidget           *widget,
                           const GtkAllocation *allocation,
-                          int                  baseline,
-                          GtkAllocation       *out_clip)
+                          int                  baseline)
 {
   GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
   GdkRectangle real_allocation;
@@ -4269,21 +4263,16 @@ gtk_widget_size_allocate (GtkWidget           *widget,
   gint min_width, min_height;
   GtkCssStyle *style;
   GtkBorder margin, border, padding;
-  GtkAllocation new_clip;
   GdkDisplay *display;
 
   g_return_if_fail (GTK_IS_WIDGET (widget));
   g_return_if_fail (baseline >= -1);
-  g_return_if_fail (out_clip != NULL);
   g_return_if_fail (allocation != NULL);
 
   gtk_widget_push_verify_invariants (widget);
 
   if (!priv->visible && !_gtk_widget_is_toplevel (widget))
-    {
-      memset (out_clip, 0, sizeof (GdkRectangle));
-      goto out;
-    }
+    goto out;
 
 #ifdef G_ENABLE_DEBUG
   display = gtk_widget_get_display (widget);
@@ -4460,18 +4449,15 @@ gtk_widget_size_allocate (GtkWidget           *widget,
                            margin.right + border.right + padding.right;
   real_allocation.height -= margin.top + border.top + padding.top +
                             margin.bottom + border.bottom + padding.bottom;
-  new_clip = real_allocation;
 
   if (g_signal_has_handler_pending (widget, widget_signals[SIZE_ALLOCATE], 0, FALSE))
     g_signal_emit (widget, widget_signals[SIZE_ALLOCATE], 0,
                    &real_allocation,
-                   baseline,
-                   &new_clip);
+                   baseline);
   else
     GTK_WIDGET_GET_CLASS (widget)->size_allocate (widget,
                                                   &real_allocation,
-                                                  baseline,
-                                                  &new_clip);
+                                                  baseline);
 
   /* Size allocation is god... after consulting god, no further requests or allocations are needed */
 #ifdef G_ENABLE_DEBUG
@@ -4724,8 +4710,7 @@ gtk_widget_translate_coordinatesf (GtkWidget  *src_widget,
 static void
 gtk_widget_real_size_allocate (GtkWidget           *widget,
                                const GtkAllocation *allocation,
-                               int                  baseline,
-                               GtkAllocation       *out_clip)
+                               int                  baseline)
 {
   GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
 
@@ -12249,11 +12234,10 @@ gtk_widget_ensure_allocate (GtkWidget *widget)
   if (priv->alloc_needed)
     {
       GtkAllocation allocation;
-      GtkAllocation clip;
       int baseline;
 
       gtk_widget_get_allocated_size (widget, &allocation, &baseline);
-      gtk_widget_size_allocate (widget, &allocation, baseline, &clip);
+      gtk_widget_size_allocate (widget, &allocation, baseline);
     }
   else if (priv->alloc_needed_on_child)
     {
index a473aecd778832a0850784d17341aa8b51463513..d59e735eb55887db3c77e5b4915ae2aa2a7f9e4d 100644 (file)
@@ -257,8 +257,7 @@ struct _GtkWidgetClass
   void (* unrealize)           (GtkWidget        *widget);
   void (* size_allocate)       (GtkWidget           *widget,
                                 const GtkAllocation *allocation,
-                                int                  baseline,
-                                GtkAllocation       *out_clip);
+                                int                  baseline);
   void (* state_flags_changed) (GtkWidget        *widget,
                                 GtkStateFlags     previous_state_flags);
   void (* hierarchy_changed)   (GtkWidget        *widget,
@@ -427,8 +426,7 @@ GdkFrameClock* gtk_widget_get_frame_clock (GtkWidget           *widget);
 GDK_AVAILABLE_IN_ALL
 void       gtk_widget_size_allocate       (GtkWidget           *widget,
                                            const GtkAllocation *allocation,
-                                           int                  baseline,
-                                           GtkAllocation       *out_clip);
+                                           int                  baseline);
 
 GDK_AVAILABLE_IN_ALL
 GtkSizeRequestMode  gtk_widget_get_request_mode               (GtkWidget      *widget);
index e84f5cb1646bb103f9fbee06e3dd008fbeff46e2..842bec312b750f9610662dd809b99a45bb5e67c3 100644 (file)
@@ -424,8 +424,7 @@ static void gtk_window_realize            (GtkWidget         *widget);
 static void gtk_window_unrealize          (GtkWidget         *widget);
 static void gtk_window_size_allocate      (GtkWidget           *widget,
                                            const GtkAllocation *allocation,
-                                           int                  baseline,
-                                           GtkAllocation       *out_clip);
+                                           int                  baseline);
 static gboolean gtk_window_close_request  (GtkWindow         *window);
 static gboolean gtk_window_emit_close_request (GtkWindow *window);
 static gboolean gtk_window_configure_event (GtkWidget         *widget,
@@ -5427,8 +5426,7 @@ gtk_window_resize (GtkWindow *window,
  * static void
  * on_size_allocate (GtkWidget *widget,
  *                   const GtkAllocation *allocation,
- *                   int baseline,
- *                   GtkAllocation *out_clip)
+ *                   int baseline)
  * {
  *   int new_width, new_height;
  *
@@ -6811,7 +6809,6 @@ gtk_window_realize (GtkWidget *widget)
       allocation.height == 1)
     {
       GdkRectangle request;
-      GdkRectangle clip;
 
       gtk_window_compute_configure_request (window, &request, NULL, NULL);
 
@@ -6819,7 +6816,7 @@ gtk_window_realize (GtkWidget *widget)
       allocation.y = 0;
       allocation.width = request.width;
       allocation.height = request.height;
-      gtk_widget_size_allocate (widget, &allocation, -1, &clip);
+      gtk_widget_size_allocate (widget, &allocation, -1);
 
       gtk_widget_queue_resize (widget);
 
@@ -7070,13 +7067,12 @@ popover_size_allocate (GtkWindowPopover *popover,
                        GtkWindow        *window)
 {
   cairo_rectangle_int_t rect;
-  GtkAllocation clip;
 
   if (GTK_IS_POPOVER (popover->widget))
     gtk_popover_update_position (GTK_POPOVER (popover->widget));
 
   popover_get_rect (popover, window, &rect);
-  gtk_widget_size_allocate (popover->widget, &rect, -1, &clip);
+  gtk_widget_size_allocate (popover->widget, &rect, -1);
 }
 
 /* _gtk_window_set_allocation:
@@ -7131,7 +7127,6 @@ _gtk_window_set_allocation (GtkWindow           *window,
       !priv->fullscreen)
     {
       GtkAllocation title_allocation;
-      GtkAllocation title_clip;
 
       title_allocation.x = window_border.left;
       title_allocation.y = window_border.top;
@@ -7146,7 +7141,7 @@ _gtk_window_set_allocation (GtkWindow           *window,
 
       title_allocation.height = priv->title_height;
 
-      gtk_widget_size_allocate (priv->title_box, &title_allocation, -1, &title_clip);
+      gtk_widget_size_allocate (priv->title_box, &title_allocation, -1);
     }
 
   if (priv->decorated &&
@@ -7179,8 +7174,7 @@ _gtk_window_set_allocation (GtkWindow           *window,
 static void
 gtk_window_size_allocate (GtkWidget           *widget,
                           const GtkAllocation *allocation,
-                          int                  baseline,
-                          GtkAllocation       *out_clip)
+                          int                  baseline)
 {
   GtkWindow *window = GTK_WINDOW (widget);
   GtkWidget *child;
@@ -7190,7 +7184,7 @@ gtk_window_size_allocate (GtkWidget           *widget,
 
   child = gtk_bin_get_child (GTK_BIN (window));
   if (child && gtk_widget_get_visible (child))
-    gtk_widget_size_allocate (child, &child_allocation, -1, out_clip);
+    gtk_widget_size_allocate (child, &child_allocation, -1);
 }
 
 static gboolean
@@ -8862,7 +8856,6 @@ gtk_window_move_resize (GtkWindow *window)
   if (priv->configure_notify_received)
     {
       GtkAllocation allocation;
-      GtkAllocation clip;
       int min;
 
       /* If we have received a configure event since
@@ -8888,7 +8881,7 @@ gtk_window_move_resize (GtkWindow *window)
                           &min, NULL, NULL, NULL);
       allocation.height = MAX (min, current_height);
 
-      gtk_widget_size_allocate (widget, &allocation, -1, &clip);
+      gtk_widget_size_allocate (widget, &allocation, -1);
 
       /* If the configure request changed, it means that
        * we either:
@@ -8964,7 +8957,6 @@ gtk_window_move_resize (GtkWindow *window)
       if (priv->type == GTK_WINDOW_POPUP)
         {
           GtkAllocation allocation;
-          GtkAllocation clip;
 
          /* Directly size allocate for override redirect (popup) windows. */
           allocation.x = 0;
@@ -8972,7 +8964,7 @@ gtk_window_move_resize (GtkWindow *window)
          allocation.width = new_request.width;
          allocation.height = new_request.height;
 
-          gtk_widget_size_allocate (widget, &allocation, -1, &clip);
+          gtk_widget_size_allocate (widget, &allocation, -1);
        }
       else
         {
@@ -9000,7 +8992,7 @@ gtk_window_move_resize (GtkWindow *window)
     }
   else
     {
-      GtkAllocation allocation, clip;
+      GtkAllocation allocation;
       int min_width, min_height;
 
       /* Handle any position changes.
@@ -9024,7 +9016,7 @@ gtk_window_move_resize (GtkWindow *window)
       allocation.width = MAX (current_width, min_width);
       allocation.height = MAX (current_height, min_height);
 
-      gtk_widget_size_allocate (widget, &allocation, -1, &clip);
+      gtk_widget_size_allocate (widget, &allocation, -1);
     }
   
   /* We have now processed a move/resize since the last position
index a5a257ed3681b28e21e63edbb2a0bb81dd8488c3..5c1ef4a633dba4bd01505fa1d1e59ce8285ef28b 100644 (file)
@@ -251,11 +251,10 @@ gtk_stack_combo_snapshot (GtkWidget   *widget,
 static void
 gtk_stack_combo_size_allocate (GtkWidget           *widget,
                                const GtkAllocation *allocation,
-                               int                  baseline,
-                               GtkAllocation       *out_clip)
+                               int                  baseline)
 {
   GtkStackCombo *self = GTK_STACK_COMBO (widget);
-  gtk_widget_size_allocate (GTK_WIDGET (self->combo), allocation, baseline, out_clip);
+  gtk_widget_size_allocate (GTK_WIDGET (self->combo), allocation, baseline);
 }
 
 static void
index cdd951012321ae4f6c9e98a78f388a3acfc33e4d..536f735eb09c55edbb4411092896ee07c16a4ba2 100644 (file)
@@ -136,7 +136,6 @@ static void
 allocation_changed (GtkWidget    *w,
                     GdkRectangle *allocation,
                     int           baseline,
-                    GdkRectangle *out_clip,
                     GtkInspectorMiscInfo *sl)
 {
   GtkAllocation alloc;
@@ -459,7 +458,7 @@ gtk_inspector_misc_info_set_object (GtkInspectorMiscInfo *sl,
       state_flags_changed (GTK_WIDGET (sl->priv->object), 0, sl);
 
       g_signal_connect_object (object, "size-allocate", G_CALLBACK (allocation_changed), sl, 0);
-      allocation_changed (GTK_WIDGET (sl->priv->object), NULL, -1, NULL, sl);
+      allocation_changed (GTK_WIDGET (sl->priv->object), NULL, -1, sl);
     }
   else
     {
index a298f1416815a27af7de4fc23a5968332e91097d..9694e84bdf03f12645419fb346da27ce5148aca3 100644 (file)
@@ -36,7 +36,6 @@ static void
 size_allocate (GtkWidget     *widget,
                GtkAllocation *allocation,
                int            baseline,
-               GdkRectangle  *clip,
                gpointer       data)
 {
   if (surface)
index 6ed24b11d6e61e33c306b4830ffe8aade81b9459..86437ee020ebe2e7a6c101950eed9710d7c69b70 100644 (file)
@@ -1,9 +1,10 @@
 #include <gtk/gtk.h>
 
 static void
-child_size_allocate (GtkWidget *child,
+child_size_allocate (GtkWidget    *child,
                      GdkRectangle *allocation,
-                     gpointer user_data)
+                     gint          baseline,
+                     gpointer      user_data)
 {
   GtkStyleContext *context;
   context = gtk_widget_get_style_context (child);
index 5d33302bdc9eec74b3c3c82e08ccbde3fc34e848..a0a196a50ab9871417ba10626ddca3a83ef324f0 100644 (file)
@@ -90,8 +90,7 @@ G_DEFINE_TYPE(GtkFocusWidget, gtk_focus_widget, GTK_TYPE_WIDGET)
 static void
 gtk_focus_widget_size_allocate (GtkWidget           *widget,
                                 const GtkAllocation *allocation,
-                                int                  baseline,
-                                GtkAllocation       *out_clip)
+                                int                  baseline)
 {
   GtkFocusWidget *self = GTK_FOCUS_WIDGET (widget);
   int child_width  = (allocation->width)  / 2;
@@ -103,19 +102,19 @@ gtk_focus_widget_size_allocate (GtkWidget           *widget,
   child_alloc.width = child_width;
   child_alloc.height = child_height;
 
-  gtk_widget_size_allocate (self->child1, &child_alloc, -1, out_clip);
+  gtk_widget_size_allocate (self->child1, &child_alloc, -1);
 
   child_alloc.x += child_width;
 
-  gtk_widget_size_allocate (self->child2, &child_alloc, -1, out_clip);
+  gtk_widget_size_allocate (self->child2, &child_alloc, -1);
 
   child_alloc.y += child_height;
 
-  gtk_widget_size_allocate (self->child4, &child_alloc, -1, out_clip);
+  gtk_widget_size_allocate (self->child4, &child_alloc, -1);
 
   child_alloc.x -= child_width;
 
-  gtk_widget_size_allocate (self->child3, &child_alloc, -1, out_clip);
+  gtk_widget_size_allocate (self->child3, &child_alloc, -1);
 }
 
 static void